How to create lib files

Chris Saunders evas at mountaincable.net
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.

Regards
Chris Saunders

-----Original Message-----
From: gmp-discuss-bounces at swox.com [mailto:gmp-discuss-bounces at swox.com] On
Behalf Of Sisyphus
Sent: July-06-06 3:10 AM
To: 'Tao Xiang'; gmp-discuss at swox.com
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
way
> 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
http://swox.com/gmp/manual/Notes-for-Particular-Systems.html#Notes-for-Parti
cular-Systems

Cheers,
Rob

_______________________________________________
gmp-discuss mailing list
gmp-discuss at swox.com
https://gmplib.org/mailman/listinfo/gmp-discuss



More information about the gmp-discuss mailing list