PDA

View Full Version : problem compiling my program on linux



joker40
11-15-2010, 08: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.

ZbuffeR
11-16-2010, 01:19 AM
-lXmu
Do not forget the 'l' ...

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