Page 2 of 2

Re: [PB5.31] GMP 6.0.0a

Posted: Sun Jan 04, 2015 8:40 am
by jack
to complement bbanelli's GMP include, here's the one for MPFR.
it comes with a couple of examples, included in the archive is a Windows x64 dll in case you need it, download http://www.mediafire.com/download/bltf0 ... pfr-pb.zip

Re: [PB5.31] GMP 6.0.0a

Posted: Sun Jan 04, 2015 2:39 pm
by bbanelli
jack wrote:to complement bbanelli's GMP include, here's the one for MPFR.
it comes with a couple of examples, included in the archive is a Windows x64 dll in case you need it, download http://www.mediafire.com/download/hcr5a ... pfr-pb.zip
Jack, what did you use to compile that DLL?

Re: [PB5.31] GMP 6.0.0a

Posted: Sun Jan 04, 2015 3:38 pm
by jack
I am not sure but I think I used TDM-gcc it' been a while, but I have to say that the way I did it was a hack, could not get the dll to pass the tests but the static build passed OK
so I extracted the objects from the static lib and did something like this: gcc -shared -static -o libmpfr-4.dll *.o -lgmp
btw I think the mpfr structures should be as follows

Code: Select all

 Structure mpz Align #PB_Structure_AlignC ; multiprecision integer 
    mp_alloc.l 
    mp_size.l 
    mp_limb.i 
  EndStructure 
  
  Structure mpq Align #PB_Structure_AlignC ; multiprecision rational 
    mp_num.mpz 
    mp_den.mpz 
  EndStructure 
  
  Structure mpf Align #PB_Structure_AlignC ; multiprecision floating point 
    mp_prec.l 
    mp_size.l 
    mp_expt.i 
    mp_limb.i 
  EndStructure 
  
  Structure mpfr Align #PB_Structure_AlignC ; multiprecision floating point
    prec.i
    sign.l
    exp.i
    d.i
  EndStructure


Structure gmp_randata_lc_t Align #PB_Structure_AlignC
   mp_a.i
   mp_c.i
   mp_m.i
   mp_m2exp.i
EndStructure

Structure mp_algdata_t Align #PB_Structure_AlignC
  StructureUnion
     *_mp_lc.gmp_randata_lc_t
   EndStructureUnion
EndStructure

Structure gmp_randstate_t Align #PB_Structure_AlignC
   mp_seed.mpz
   mp_alg.i
   mp_algdata.mp_algdata_t
EndStructure

Re: [PB5.31] GMP 6.0.0a

Posted: Wed Mar 09, 2016 7:32 pm
by jack

Re: [PB5.31] GMP 6.0.0a

Posted: Wed Mar 09, 2016 8:27 pm
by davido
@jack,

Thank you for taking the trouble to do this update.
It is very much appreciated. :D

Re: [PB5.31] GMP 6.0.0a

Posted: Thu Mar 16, 2023 7:23 pm
by AZJIO
DLL/so/dylib

Windows
libgmp-10.dll (GMP x86)
libgmp-10x64.dll (GMP x64)
msys-1.0.dll (required!)

Linux
libgmp.so.10.2.0 (GMP x86)
libgmp.so.10.2.x64.0 (GMP x64)

Mac OS X
libgmp.10.dylib (GMP x86)
libgmp.10.x64.dylib (GMP x64)
Can you update the links?

Re: [PB5.31] GMP 6.0.0a

Posted: Mon Jun 10, 2024 11:29 am
by bbanelli
@AZJIO I'll do my best to find them or recompile and upload; keep you posted, will update in thread!

With my best,

Bruno

Re: [PB5.31] GMP 6.0.0a

Posted: Tue Feb 04, 2025 8:13 am
by Michael Vogel
Hi, would be fine if someone could upload actual versions of the GMP libraries.

Re: [PB5.31] GMP 6.0.0a

Posted: Tue Feb 04, 2025 11:44 am
by jack
you may download GMP-MPFR

Re: [PB5.31] GMP 6.0.0a

Posted: Thu Feb 06, 2025 9:42 am
by Michael Vogel
Thanks, downloaded. Any chance to get a 64 bit intel version as well (not ARM)?

Re: [PB5.31] GMP 6.0.0a

Posted: Thu Feb 06, 2025 2:17 pm
by jack
hello Michael Vogel, the dlls in the link are x86 and x64 dlls, I am confused as to why you think that they are ARM

Re: [PB5.31] GMP 6.0.0a

Posted: Thu Feb 06, 2025 7:00 pm
by Michael Vogel
Sorry 'bout that. I got the message "PureBasic - Linker error: Invalid machine type in object '...\dll64\libgmp-10.dll' and a dll info told me (maybe wrongly) it would be an AMD ARM lib. Need some more time for investigations...

Quick update - works fine now, no more errors with PB6.04 :D