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':
: undefined reference to `glxChooseVisual'
/tmp/cc0x3T5l.o(.text+0x12a): In function `funct_1':
: undefined reference to `glxChooseVisual'
collect2: ld returned 1 exit status
heres the command i use
Code:
gcc main.c -o test -lGL -lX11
the funny thing is, i had another opengl program (one that used glxChooseVisual and actual opengl to draw some triangles), the same compile command worked on it (both programs are on the same computer, and same everything), but in this new one, i cant get it to get past that error. any ideas?