public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* ld and single object libs?
@ 2000-01-18 15:48 Gareth Andrew
  0 siblings, 0 replies; only message in thread
From: Gareth Andrew @ 2000-01-18 15:48 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-01-18 15:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-18 15:48 ld and single object libs? Gareth Andrew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).