precompiled gmpxx on windows

Michael Abshoff Michael.Abshoff at fsmath.mathematik.uni-dortmund.de
Mon Apr 23 12:11:06 CEST 2007


TheGuest wrote:
>
> Hi,
> I've downlaoded from deltatrinity site, these files:
>
> gmp.h
> gmpxx.h
> libgmp-3.dll
>
> I've linked it in my C/C++ editor and all gmp functions works fine!
> but I've problems with C++ class interface;
> that is, this code works fine:
>
> int main(){
>
> mpz_class a,b,c;
> a= 124;
> b = 200;
> c = 30;
> a = b+c;
>
> for(a;a<500;a++)
> cout<<"Hello world!"<<endl;
>
> return 0;
> }
>
> but if I write cout<< a <<endl;
> I receive an undefined reference error;
> Why?
>
> Must I have also the libgmpxx.dll library?

Yes you do.

> In this case how must I do to download it?
>

I don't know :(, but if deltatrinity doesn't have them you have to build
them on your own.

> I've tried to compile latest gmp source package through msys and mingw,
> but
> after configure execution, when I run make, I receive always 2 errors like
> this:
>
> ../libtool fork: Permission denied
>

This is a MinGW problem and it might be easier to get help somewhere MinGW
related.

> I use configure in this way:
> ./configure --prefix=/c/gmp --disable-static --enable-shared
>
> Please help me.
> I doesn't manage in going on.
>
> Thank you in advance.
> TheGuest
>

Cheers,

Michael



More information about the gmp-discuss mailing list