This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: libm.a for Mingw32?



"Arcadio A. Sincero Jr." <asincero@sinceronet.ddns.org> writes:
> On Tue, 9 Feb 1999, Mumit Khan wrote:
> 	I've been wondering: from where did you compile the libm.a for the
> Mingw32 target from? Is this from the newlib package thats in the Cygwin
> B20.1 source tree?  I guess I'm a little anal about using pre-built binary
> packages ;-).  I prefer building them myself from source.  Not only is it
> very educational, but I also get to control exactly what and where things
> get installed.

Here's the simples libm.a for mingw32:
  
  $ ar crv libm.a
  $ ranlib libm.a

Pretty easy, huh? Some people prefer to put a dummy.o file in there just
to be consistent.

> 	FWIW - I've compiled simple test programs which uses functions
> that are supposed to be in libm.a (at least on Linux it is) such as pow(),
> but they linked and executed just fine even though I didn't specify -lm on
> the linker command line.  Is having a libm.a absolutley necessary?

That's because all of libm you expect on Unix is already in the runtime
DLL and libm.a is there only to satisfy configurations that expect it.

Regards,
Mumit


--   
Want to unsubscribe from this list?                             
Send a message to cygwin-unsubscribe@sourceware.cygnus.com