This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Finding Defined Routines In Libraries


---"Mark H. Wood" <mwood@mhw.oit.iupui.edu> wrote:
>
> On Tue, 7 Apr 1998, Earnie Boyd wrote:
> > In order to find out what routines are defined in a lib*.a or a MS
> > *.lib (not Borlands) you can do the following:
> > 
> > nm --demangle --defined-only <libname.a>
> 
> I get a feeling (from this and other postings) that the Gnu-Win32 
> binutils understand MS .lib format as well as archive (.a) format. 
Is 
> there something, somewhere, which actually says this, and I just
missed 
> it?

I don't know if it is in the FAQ or not but I do know from experience
that it will work for MS .lib's and not for BORLAND .lib's.

I also have read, somewhere, that it is by design that things are to
interwork with MS formats.  Not necessarily the other way around
though.  I've as much as just copied a MS some.lib to libsome.a and
linked with it.  The linker complains about multiply defined .text and
other such symbols but only gives warnings.  The program didn't run,
but it wasn't for this reason that it didn't run.  So, I still don't
know if you can do this and just ignore the warnings or not.

Does anyone else have any experience with copying some.lib to
libsome.a and have the program work?

> 
> -- 
> Mark H. Wood, Lead System Programmer   mwood@IUPUI.Edu
> I'd rather be designing and coding.
> 


_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]