On Tue May 05 1998, [EMAIL PROTECTED] wrote:

>     I have some problem with compiling a socket program, it complile OK
> on sun OS, buy not on my linux machine.
> 
> gcc tconnect.o client.c -lsocket -o client
> /usr/i486-linux/bin/ld: cannot open -lsocket: No such file or directory
> make: *** [client] Error 1
> 
>     Can someone help?

There's no specific `libsocket' library to link with on linux.

AFAIK, the socket routines are built into the standard libc.  (The man page
for `socket' doesn't say anything differently).  (Doing a "strings" command
over my /lib/libc.so showed that the symbol exists in there).

Try taking out the -lsocket from that link line you are using (or in the
Makefile, whatever).  It's not needed.

Cheers
Tony                           .
    [EMAIL PROTECTED] _--_|\        [EMAIL PROTECTED]
    UNIX Systems Officer  /     *\   [EMAIL PROTECTED]
    Faculty of Science    \_.--._/ [EMAIL PROTECTED]
    Uni of Southern Queensland  v         Toowoomba   Australia
   -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-

Reply via email to