libgmp-3.dll.dll is missing
Sam Rawlins
sam.rawlins at gmail.com
Fri Mar 5 19:48:40 CET 2010
On Fri, Mar 5, 2010 at 1:05 AM, Sisyphus <sisyphus1 at optusnet.com.au> wrote:
>
> ----- Original Message ----- From: "Andreas Fabri" <
> andreas.fabri at geometryfactory.com>
> To: <gmp-discuss at gmplib.org>
> Sent: Friday, March 05, 2010 3:11 AM
> Subject: libgmp-3.dll.dll is missing
>
>
>
>
>> Hello,
>>
>> I want to use the shared version of GMP generated with MinGW in an
>> application using VC++.
>>
>> I created it calling in msys:
>>
>> configure --disable-static --enable-shared
>> make
>>
>>
>> I then followed the instructions on the page
>> "
>> http://gmplib.org/manual/Notes-for-Particular-Systems.html#Notes-for-Particular-Systems
>> in order to generate the .lib file:
>>
>> cd .libs
>> lib /def:libgmp-3.dll.def /out:libgmp-3.lib
>>
>>
>>
>> When I link with libgmp-3.lib, and then run the executable
>> I get the following error message
>>
>> "The program can't start because libgmp-3.dll.dll is missing."
>>
>>
>> Renaming libgmp-10.dll to the expected name solves the
>> problem, but I guess that's not the way it should be.
>>
>> Did I misunderstand something in the manual?
>>
>
> Not sure, but I think that if the existing dll is named 'libgmp-10.dll,
> then you have to name the def file 'libgmp-10.def'. (Untested.)
>
I agree. In compiling GMP 4.3.1, 4.3.2, and 5.0.0 in msys, I get
libgmp-3.dll. GMP 5.0.1 is the first version to generate libgmp-10.dll. So I
would change those two commands in the manual to:
cd .libs
lib /def:libgmp-10.dll.def /out:libgmp-10.lib
Especially because I don't like the idea of renaming a dll.
>
> Cheers,
> Rob
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-discuss
>
--
Sam Rawlins
More information about the gmp-discuss
mailing list