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

问题描述:

据我了解,我应该先安装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.

这是我的解决方案的链接:

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++