一、配置GMP 1、安装MinGW 参照:博客 2、安装MSYS 下载安装,在其中进行下一步 3、编译gmp与vs配置 参照:博客 其中静态库安装: ./configure --enable-cxx make make check make install 还需要添加链接libmsvcrt.a