Re: Help compiling Xlib
On Mon, Jul 17, 2000 at 09:37:13PM +0300, Lehel Bernadt wrote:
> On 17-Jul-2000 Dinesh Nadarajah wrote:
> > I am trying to compile a simple X application but I
> > keep getting the folloeing error:
> > gcc -g -o testapp test1.c -lX11
> > /usr/bin/ld: cannot find -lX11
> > collect2: ld returned 1 exit status
> > Any suggestions? What are the Xlib libraries called
> > under Linux. Thanks.
> You'll need xlib6g-dev.
The X11 libs aren't normally in gcc's search path, you need both the
search path *and* the library to link:
$ gcc -g -O2 -o bar foo.c -L/usr/X11R6/lib -lX11
According to MegaHAL:
The emu is a mass of incandescent gas, a gigantic nuclear furnace.