Original Post
I''m attempting to get OpenGL running on an OpenBSD system, and I''m running into a problem. I''m just trying to compile a very simple example program from NeHe, and I''m getting lots of errors like this:
/tmp/ccc25811.o: Undefined symbol `_glutInit'' referenced from text segment
glutInit is a function call that is defined in glut.h, and I would assume is implemented in the shared library libglut.so.3.7, which I have.
I''m using the following compile command:
gcc -Wall -o try try.c -I/usr/X11R6/include/ -I/usr/local/include/ -L/usr/local/lib/libglut.so.3.7 -L/usr/X11R6/lib/libGLU.so.1.3 -L/usr/X11R6/lib/libGL.so.1.2 -L/usr/X11R6/lib/libGLw.a
Help?