juicychong
12-18-2003, 01:42 PM
i was trying to compile a socket while i tried to write a server according to the help of Beej's guide to Network Programming
the result came out as below:
--------
[juicy@juicy server]$ cc -o server server.c -lnsl -lsocket
/usr/bin/ld: cannot find -lsocket
collect2: ld returned 1 exit status
--------
I'm using Redhat Linux 9
and i'm just asking that
is there any problem with the "-lsocket"?
how may i change the command so that it works?
the result came out as below:
--------
[juicy@juicy server]$ cc -o server server.c -lnsl -lsocket
/usr/bin/ld: cannot find -lsocket
collect2: ld returned 1 exit status
--------
I'm using Redhat Linux 9
and i'm just asking that
is there any problem with the "-lsocket"?
how may i change the command so that it works?