delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/01/18/18:45:19

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <200001182348.PAA10698@vs10.virtualisys.com>
X-Sender: gandrew AT mail DOT swebdesign DOT net
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0
Date: Tue, 18 Jan 2000 23:50:30 +0000
To: cygwin AT sourceware DOT cygnus DOT com
From: Gareth Andrew <gandrew AT swebdesign DOT net>
Subject: ld and single object libs?
Mime-Version: 1.0

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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019