Ibrahim F Haddad wrote:

> I am compiling a software that i got from the net.
> when compiling I get:
> 
> ----------
> gcc -Wall -O6 -g -I../zlib-1.1.3 -DHAVE_ZLIB client.o test.o vrml.o
> util.o network.o libnr.a analyzeFuncs.o analyzeReport.o gaussfit.o
> glue.o seti.o libnr.a -L../zlib-1.1.3 -lz -lm -lsocket -lnsl
> rpc_client.o -o client
> /usr/i486-unknown-linux-gnulibc1/bin/ld: cannot open -lsocket: No such
> file or directory
> make: *** [client] Error 1
> 
> --------- 
>         
> any ideas about socket.h? 

socket.h has nothing to do with this.

> Am i missing it from my distribution? 

Linux doesn't use libsocket; the socket functions are built into libc. 
Likewise for libnsl.

Just remove the -lsocket and -lnsl options from the link command.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to