Click to See Complete Forum and Search --> : Can't find library


davidm
04-20-2002, 05:59 PM
I am trying to learn to program my linux box. I am trying to compile a program that links against the x11 library. I am using the flag -lx11 with gcc, but I get the error that the compiler can't find the library. Any suggestions?

furrycat
04-22-2002, 11:26 PM
That's X11. Not x11.

Try also adding the flag -L/usr/X11R6/lib to your gcc line.