On Tue, Mar 28, 2000 at 06:34:39AM +1000, [EMAIL PROTECTED] wrote:

> gcc  hp2xx.o hpgl.o picbuf.o bresnham.o chardraw.o getopt.o getopt1.o
> to_vec.o to_pcx.o to_pcl.o to_eps.o to_img.o to_pbm.o to_rgip.o std_main.o
> to_x11.o  -lX11 -lm      -o hp2xx
>  /usr/bin/ld: cannot open -lX11: No such file or directory

The `-lX11' switch tells ld (the linker) to link the library called
`libX11.so' (shared) or `libX11.a' (static).

On my workstation:

[johnc@dropbear ~]$ locate libX11   
/usr/i486-linux-libc5/lib/libX11.so.6
/usr/i486-linux-libc5/lib/libX11.so.6.1
/usr/i486-linuxaout/lib/libX11.so.3
/usr/i486-linuxaout/lib/libX11.so.3.1.0
/usr/i486-linuxaout/lib/libX11.so.6
/usr/i486-linuxaout/lib/libX11.so.6.0
/usr/X11R6/lib/libX11.a
/usr/X11R6/lib/libX11.so
/usr/X11R6/lib/libX11.so.6
/usr/X11R6/lib/libX11.so.6.1
[johnc@dropbear ~]$ rpm -qf /usr/X11R6/lib/libX11.so
XFree86-devel-3.3.5-0.5.2

You probably didn't install this rpm.  Run `rpm -q XFree86-devel'.  It'll
tell you whether or not the package installed.  Install it and try again.

Cheers,

John
-- 
whois [EMAIL PROTECTED]
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to