Hi,
Try w/o the lsocket option..should work w/o the -lsocket option...

hth,
Arni

shane yan wrote:
> 
> I wrote a c program to access MySql database on RH Linux 6.0.  When I tried
> to compile it, it failed.
> 
> # gcc -g -o mysqltest mysqltest.c -I/usr/lib/mysql -L/usr/include/mysql
> -lmysqlclient -lsocket -lnsl
> /usr/bin/ld: cannot open -lsocket: No such file or directory
> collect2: ld returned 1 exit status
> 
> Currently, there is no libsocket.a under /usr/lib.  Anybody knows where
> I can get this file to fix the problem?
> 
> Thanks,
> Shane
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to