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 >
- Re: *** SUCCESS *** IPCHAINS - IPFIREWALLING Charles E. Gelm
- SV: *** SUCCESS *** IPCHAINS - IPFIREWALLING Jarmo Paavilainen
- Re: SV: *** SUCCESS *** IPCHAINS - IPFIREWAL... Charles E. Gelm
- Re: *** SUCCESS *** IPCHAINS - IPFIREWALLING Beau Kuiper
- Re: *** SUCCESS *** IPCHAINS - IPFIREWALLING Charles E. Gelm
- Re: *** SUCCESS *** IPCHAINS - IPFIREWALLING Charles E Gelm
- Re: *** SUCCESS *** IPCHAINS - IPFIREWAL... Charles E Gelm
- RE: *** SUCCESS *** IPCHAINS - IPFIREWAL... Moonshi Mohsenruddin
- libsocket.a file??? shane yan
- Re: libsocket.a file??? Arni Raghu
- RE: *** SUCCESS *** IPCHAINS - IPFIREWAL... xiao
- RE: *** SUCCESS *** IPCHAINS - IPFIREWALLING Gersbach, Jeff
- Re: *** SUCCESS *** IPCHAINS - IPFIREWALLING Charles E Gelm