Installing GMP on VStudio 2017

Robert Baron robert.baron at videotron.ca
Sun Apr 1 08:05:33 UTC 2018


See https://machinecognitis.github.io/Math.Gmp.Native/html/846f5c8a-6cba-433e-9f18-cde2ff5695cd.htm this will explain how to compile GMP on Windows. There is also a NuGet package for GMP.

Cheers,

Robert
Envoyé de mon iPhone

> Le 29 mars 2018 à 21:07, Person Withhats <personwithhats2 at gmail.com> a écrit :
> 
> As it says up there... I really really need this fixed!
> 
> I've compiled and recompiled GMP using msys2, cygwin, etc. and none of them
> work properly.
> 
> My edits to project options:
>    Linker -> General: Additional Library Directories
>    $(GMP_ROOT)\lib;%(AdditionalLibraryDirectories)
> 
>    Linker -> Input: Additional Dependencies (libgcc.a does nothing and
> order for xx or not doesn't seem to matter)
> 
> C:\msys64\usr\lib\gcc\x86_64-pc-msys\6.4.0\libgcc.a;libgmpxx.a;libgmp.a;%(AdditionalDependencies)
> 
> 
>    C++ -> General: Additional includes
>    $(Boost_ROOT);$(GMP_ROOT)\include
> 
> 
> I get a "unresolved external symbol __getreent (and fprintf) in function
> gmp_default_allocate"
> 
> 
> It just wont' bloody work, days wasted on this. Please advise.
> 
> Windows 10 pro, x64 bit. VStudio community 2017.
> 
> Basic test project that includes boost and GMP (trying to try out gmp_float)
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-discuss


More information about the gmp-discuss mailing list