can not find lX11 problem
when i tried to compile a program, i always got the error message:
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
The makefile is like that:
LIBSG = -lglut -lGLU -lGL -lXmu -lX11 -lm
I revised the makefile by changing it to the real directory of X11.a file. SO it is like this now:
LIBSG = -L /usr/X11R6/lib -lglut -lGLU -lGL -lXmu -lX11 -lm
Unfortunately, it still didn't work. Checked this forum. People got this similar problrm solved this problem just by revising the makefile as I did. Why it didn't wok for me? Please help. Thank you very much.
|