I downloaded a nehe demo and tried to build under Mac OS 10.4 (intel)
I’m building using g++ 4.0.1, and since the demo used code warrior, and had no makefile, I have no idea what it did, but since I know how to build on Linux and Windows, I figured it should be easy…
The problem is, despite having something called GLUT.Framework loaded on the system, I don’t seem to have a glut library to link to. I searched, and there is no libglut.a, or libglut.dylib that I can see. I did find GL, but I’m still getting undefined symbols _glutMainLoop, etc. Can anyone explain what I’m doing wrong?
Here’s the makefile I put together:
INC=-I/usr/X11R6/include/GL -I/usr/X11R6/include -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/GLUT.framework/Versions/A/Headers/
LIB=-L/usr/X11R6/lib -lGL
lesson05: main.c
gcc -g (INC) main.c (LIB)