win32 _decl problems
delta trinity
deltatrinity@hotmail.com
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
>addition
>might have worked.
>
>Only problem is, I imagine, that you don't have the static library file
>'libgmp-3.lib'.
>
>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
>so
>that it could be found without having to specify any additional
>directories.
>
>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.
>:-)
>
>Cheers,
>Rob
Hello
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
Cheer
Eric
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus