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
--- Internet Message Header Follows ---
Received: from [128.214.248.27]
by smtp.daymarc.com (FirstClass Mail Server v5.1)
transient id 233; 2:23:25 AM -0400
Received: from vger.rutgers.edu ([128.6.190.2]:11322 "EHLO vger.rutgers.edu")
by listserv.funet.fi with ESMTP id <S17273AbPHMFr4>;
Fri, 13 Aug 1999 08:47:56 +0300
Received: by vger.rutgers.edu via listexpand id <S155149AbPHMFD2>;
Fri, 13 Aug 1999 01:03:28 -0400
Received: by vger.rutgers.edu id <S156260AbPHMEt0>;
Fri, 13 Aug 1999 00:49:26 -0400
Received: from dirty.research.bell-labs.com ([204.178.16.6]:16067 "HELO
dirty.research.bell-labs.com") by vger.rutgers.edu with SMTP
id <S157661AbPHMDki>; Thu, 12 Aug 1999 23:40:38 -0400
Received: from bronx.dnrc.bell-labs.com ([135.180.160.8]) by dirty; Thu Aug 12
20:33:50 EDT 1999
Received: from caip.rutgers.edu (blhobvmpc [135.180.161.189])
by bronx.dnrc.bell-labs.com (8.9.3/8.9.3) with ESMTP id UAA02559;
Thu, 12 Aug 1999 20:34:12 -0400 (EDT)
Message-ID: <[EMAIL PROTECTED]>
Date: Thu, 12 Aug 1999 20:38:03 -0400
From: Arni Raghu <[EMAIL PROTECTED]>
Organization: Rutgers University
X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.10 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: shane yan <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: libsocket.a file???
References: <[EMAIL PROTECTED]> <99072807515700.00142@darkstar>
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: [EMAIL PROTECTED]
Precedence: bulk
X-Loop: [EMAIL PROTECTED]
Return-Path: <[EMAIL PROTECTED]>
X-Orcpt: rfc822;linux-newbie-outgoing