Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sourceware.cygnus.com Delivered-To: mailing list cygwin@sourceware.cygnus.com Message-Id: <200001182348.PAA10698@vs10.virtualisys.com> X-Sender: gandrew@mail.swebdesign.net X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Date: Tue, 18 Jan 2000 23:50:30 +0000 To: cygwin@sourceware.cygnus.com From: Gareth Andrew Subject: ld and single object libs? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I am getting strange linker problems when using a self-written library. The first function defined in the library isn't found by ld (unresolved reference) but it appears in the library with a T beside when i use nm. The libary was created the same way as all my other libraries ar ruv libname.a object.o ... ranlib libname.a All the other libraries I have created work fine and if I link against the object file instead, my program also links properly. The only difference between this library and my other libraries is that there is only one object file while inside it. Does ld or ar or ranlib have a problem with a library that contains only one file or am I doing something wrong? I know this is probably my lack of understanding rather than a bug in cygwin and therefore off-topic but I would be grateful for your help. Thanks Gareth Andrew PS: I'm using cygwin b20 and gcc-2.95 -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com