On Mon, 17 Jul 2000, Dinesh Nadarajah wrote:
> I tried all sorts of combinations but don't seem to be > able to get it going. What is the name of the Xlib > library files? Here are the things I tried. Any other > advice? > > Thanks. > > --- "Pavel M. Penev" <[EMAIL PROTECTED]> > wrote: > > > > > > On Mon, 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. > > > > > > -D > > > > > > > xlib6g installs its libraries under /usr/X11R6/lib/ > > (try dpkg --largemem > > -L xlib6g) and are trying to have names compatible > > with all other > > distributions. I think the problem is that xlib6g > > does not make > > /usr/lib/X11 to be a symlink to /usr/lib/X11R6 where > > ld likes to look for > > the libraries. Either make the symlink, or give ld > > (gcc will pass > > appropriate arguments to ld) a "-L/usr/X11R6/lib" > > switch. > > > > This is for now, > > Pavel M. Penev > > > > And what you should have tried is: gcc -L/usr/X11R6/lib -lX11 <other gcc options> <file.c> Sorry for "misleading" you in a way. Hope you suceed this time, Pavel