libglut.so compilation error
Hi,
I am compiling some openGL code on my Red Hat Linux system (2.4.21-20.ELsmp).
The command line is as follows:
g++ -o camklt camklt.o -L/usr/lib -lglut -L/usr/X11R6/lib -lGL -lGLU -lGL -lXext -lXmu -lXi -L../lib -lcamcon -L../klt/klt -lklt
and I get the following error messages:
camklt.o(.text+0x2d4): In function `redraw()':
/home/koch/sean_urop/urop_release/camklt/camklt.cpp:53: undefined reference to `glutSwapBuffers()'
camklt.o(.text+0x39b): In function `main':
/home/koch/sean_urop/urop_release/camklt/camklt.cpp:63: undefined reference to `glutInit(int*, char**)'
camklt.o(.text+0x3a8):/home/koch/sean_urop/urop_release/camklt/camklt.cpp:64: undefined reference to `glutInitDisplayMode(unsigned int)'
camklt.o(.text+0x3b7):/home/koch/sean_urop/urop_release/camklt/camklt.cpp:66: undefined reference to `glutInitWindowPosition(int, int)'
I do have the libraries at the right place with the right permissions :
> ls -l /usr/lib | grep glut
lrwxrwxrwx 1 root root 12 Oct 8 12:16 libglut.so -> libglut.so.3
lrwxrwxrwx 1 root root 14 Oct 8 12:16 libglut.so.3 -> libglut.so.3.7
-rwxr-xr-x 1 root root 213572 Oct 8 12:16 libglut.so.3.7
My LD_LIBRARY_PATH variable is:
/usr/lib:/usr/lib/internal:/lib:/lib/cmplrs/cc:/usr/lib/cmplrs/cc:/opt/lib:/usr/local/lib:/u5/city/tools/mpi/mpich-1.2.1/lib
So what's wrong in there?
Thanks in advance,
Olivier
Last edited by koch_fr; 10-08-2004 at 01:08 PM.
|