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
begin:vcard 
n:Yan;Shane
x-mozilla-html:FALSE
org:Keane Inc.
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Consultant
x-mozilla-cpt:;31296
fn:Shane Yan
end:vcard

Reply via email to