To build GMP e.g. 6.3.0 using MSVC toolset
Tomas Janssen
janssen.tomas at hotmail.com
Wed Apr 2 07:52:26 CEST 2025
Hello,
There are very few resources currently available that explain how to compile newest version of GMP using MSVC toolset. I have sucessfully to do it by the build script https://github.com/jiangjianshan/msvc-pkg/blob/main/packages/gmp/build.sh for static library and https://github.com/jiangjianshan/msvc-pkg/blob/main/packages/gmp/build-2.sh for shared library. Surely, these two build scripts work with the other files *.diff and sync.sh in the same folder of packages/gmp in msvc-pkg. If you read the README.md in https://github.com/jiangjianshan/msvc-pkg . To build GMP, e.g. 6.3.0 using MSVC toolset, you can do in following way:
git clone https://github.com/jiangjianshan/msvc-pkg.git
cd msvc-pkg
mpt gmp
More information about the gmp-discuss
mailing list