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

gzopen & friends: doesn't link [was Re: [ns] (no subject)]



On Sun, 18 Feb 2001, Ibrahim Korpeoglu wrote:

> I want to compile nam, but I am getting the following error? Can anybody
> help?
> Ibrahim.

[snip]

> -L/home/ibrahim/ns-allinone-2.1b7a/tcl8.3.2/lib -ltcl8.3 -lXext -lX11
> -lsocket -lnsl -lintl -ldl -ldl -lm -ldl
> nam_stream.o: In function
> `NamStreamCompressedFile::NamStreamCompressedFile(char const *)':
> nam_stream.o(.text+0x5c8): undefined reference to `gzopen'

You need to add -lz to add the zlib library.

Read more at http://www.info-zip.org/pub/infozip/zlib/


Thanks,
Peter

-- 
Peter F. Handel          "[The anti-Christ] also forced everyone, small and
[email protected]      great ... to receive a mark [smart card?] on his
www.cise.ufl.edu/~phandel right hand or on his forehead, so that no one could
FAX: (561) 619-8051       buy or sell unless he had the mark"-Revelation13:16