How to create lib files

Chris Saunders evas at
Thu Jul 6 11:05:14 CEST 2006

I think that libgcc.a is only needed if you build using alloca - if you use
malloc-reentrant (going from memory so the spelling may be incorrect) things
should work fine.

Chris Saunders

-----Original Message-----
From: gmp-discuss-bounces at [mailto:gmp-discuss-bounces at] On
Behalf Of Sisyphus
Sent: July-06-06 3:10 AM
To: 'Tao Xiang'; gmp-discuss at
Subject: Re: How to create lib files

----- Original Message -----
From: "Chris Saunders"
> Build
> GMP using MinGW and MSYS.  You can easily find them using Google.  
> That
> you only need to include libgmp.a and gmp.h in your VC6 projects.

I think you would normally construct an import lib for VC6 using VC6's
'lib.exe' and 'libgmp-3.dll.def':
lib /out:libgmp-3.lib /def:libgmp-3.dll.def

Then, in your VC6 projects, link to libgmp-3.lib rather than libgmp.a.

IIRC, if you want to link your VC6 projects to libgmp.a, you need to also
link them to libgcc.a.

See the " MS Windows DLLs" section at


gmp-discuss mailing list
gmp-discuss at

More information about the gmp-discuss mailing list