need help compiling program that uses glx
ok, i have a small program I'm tying to compile, it uses 2 glx functions (glxChooseVisual) and no other opengl or glx/glu/glut functions, but i cant get it to compile, the eror is here:
Code:
/tmp/cc0x3T5l.o(.text+0x107): In function `funct_1': Code:
gcc main.c -o test -lGL -lX11 |
flags, libs
try
gcc -o foo main.c -I/usr/X11R6/include -L/usr/X11R6/lib -lglut -lGL -lGLU -lX11 -lXmu -lXi -lm |
hmm, nope, still same error :(
|
The X in the function name should be uppercase.
|
thanks Harmaa Kettu!, compiled perfectly.
|
All times are GMT -5. The time now is 09:56 PM. |