win32 _decl problems

delta trinity
Fri, 01 Aug 2003 09:15:05 -0400

>I then run, from the command line:
>cl test.c libgmp-3.lib
>which produces test.exe - which, when I run it, informs me that the 
>might have worked.
>Only problem is, I imagine, that you don't have the static library file
>If you had the file 'libgmp-3.dll-def' (which I think Delta Trinity used to
>also provide on the ftp site) you could create the static lib by running:
>LIB /def:libgmp-3.dll-def
>(You need to run that command from a folder that contains both
>'libgmp-3.dll' and 'libgmp-3.dll-def'.)
>I placed the generated 'libgmp-3.lib' in my MSVC++ compiler's /lib folder 
>that it could be found without having to specify any additional 
>I don't know why Delta Trinity has removed the def file from his ftp site -
>I guess there must be other ways of building apps linked to the GMP shared
>library, but that's the only way I know.
>I'll mail you the def file that I have. I imagine it will be quite
>serviceable, but I don't know for sure. At least it will give you something
>to try while you're waiting for other advice/help.


Well, creating the .def and .lib in MSVC is easy actually.  You just run

IMPDEF LIBGMP-3.DEF LIBGMP-3.DLL  This create a .def, from the .dll
LIB /def:LIBGMP-3.DEF /out:LIBGMP-3.LIB  This create the .lib, from the .def



MSN 8 with e-mail virus protection service: 2 months FREE*