Try -lbsd instead of -lsocket. Let me know the results.

Shu

On Thu, 12 Aug 1999, 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
> 

Reply via email to