hi,all
i am a beginner.
when i want to compile my opengl programm, i got the following messages:
gcc -Wall -I/usr/X11R6/include/ -I/usr/include/GL -o cube -L/usr/X11R6/lib -L/usr/lib/a cube.o -lX11 -lXi -lXmu -lGL -lGLU -lglut -lm
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/…/…/…/libglut.so: undefined reference to glXBindChannelToWindowSGIX' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to
glXQueryChannelDeltasSGIX’
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/…/…/…/libglut.so: undefined reference to glXChannelRectSyncSGIX' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to
glXChannelRectSGIX’
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/…/…/…/libglut.so: undefined reference to `glXQueryChannelRectSGIX’
collect2: ld returned 1 exit status
make: *** [cube] Error 1
who can tell me what happened. how can i solve this problem.
thanx