[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: compiling c programs



On Wed, 1 Mar 2000, Kor og Agnes van Hoegee wrote:

> I tried to compile the source-code of a program.
> 
> The make command results in:
> /usr/bin/ld : cannot open -lXi: No such file or directory
> 
> I think I am missing a libraryfile, but I don't know which one.
> In the /usr/X11R6/lib I have the libX11.so.6 and 6.1

See if you have libXi.so* and libXi.a (should be in the xlib6g and
xlib6g-static debs).  Also, on your linking line, make sure you add the
following:
	-L/usr/X11R6/lib
This will allow gcc/ld to search that path for the libs as well as
/usr/lib and /lib.

C


Reply to: