View Full Version : problem compiling my program on linux

11-15-2010, 07:33 PM
I wanted to compile and run my openGL program on linux which I run like this....

gcc myProgram.c -o myProgram -lGL -lGLU -lglut -lfreeimage -lX11 -lXi -Xmu
And I get following error

gcc: unrecognized option '-Xmu'
/usr/local/lib64/libglut.so: undefined reference to `XmuLookupStandardColormap'
collect2: ld returned 1 exit status

I know it is vague description but any suggestion would mean a lot.

11-16-2010, 12:19 AM
Do not forget the 'l' ...

11-16-2010, 07:21 AM
yeah that work..thank you....now i have another error...
GLUT: Fatal Error in myProgram: could not open display: