如何在 Visual Studio 上为 C++ 安装 MPFR 和 GMP

2021-12-23 00:00:00 visual-studio installation c++ gmp mpfr

据我所知,我应该先安装 GMP.我为此目的找到的唯一教程是 http://cs.nyu.edu/exact/core/gmp/ 并且当我到达第 3 步:打开 gmp.dsw(用于 VC++.Net 的 gmp.vcproj)来构建 GMP"时,我遇到了很多构建错误.您可以在此处下载:http://www.f2h.co.il/msbz68nzzip.有很多错误如致命错误C1083:无法打开包含文件:'fib_table.h':没有这样的文件或目录".

As I understand, I should first install GMP. The only tutorial I found for this purpose is http://cs.nyu.edu/exact/core/gmp/ and when I reach step 3: "Open gmp.dsw (gmp.vcproj for VC++.Net) to build GMP" I get many building errors. You can download it here: http://www.f2h.co.il/msbz68nzzip. There are many errors like "fatal error C1083: Cannot open include file: 'fib_table.h': No such file or directory".

还有其他教程吗?我该怎么办?

Is there an other tutorial? What should I do?

我在 Windows 7 上使用 Visual Studio 2010.

I'm using Visual Studio 2010 on Windows 7.

推荐答案

我遇到了类似的问题,刚刚通过下载预编译的 MPIR 和 MPFR 库而不是在 Windows 上需要 mingw 或类似的 GMP 来解决它.

I met similar problem and had just resolved it by download precompiled MPIR and MPFR libraries instead of GMP which needs mingw or similar on Windows.

这是我的解决方案的链接:如何在 Visual Studio 2008/2010 中安装 MPFR

Here is the link of my solution: How to install MPFR with Visual studio 2008 /2010

希望对您有所帮助

现在可以在这里找到@casevh 的完美解决方案:构建 mpir/mpfr/mpc 通过 VC++

Now a perfect solution by @casevh can be found here: Build mpir/mpfr/mpc via VC++

相关文章