How to install MPFR and GMP for C++ on visual studio(如何在 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.
这是我的解决方案的链接:如何在 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++
这篇关于如何在 Visual Studio 上为 C++ 安装 MPFR 和 GMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 Visual Studio 上为 C++ 安装 MPFR 和 GMP


- 使用/clr 时出现 LNK2022 错误 2022-01-01
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07
- STL 中有 dereference_iterator 吗? 2022-01-01
- C++ 协变模板 2021-01-01
- 从python回调到c++的选项 2022-11-16
- 静态初始化顺序失败 2022-01-01
- 近似搜索的工作原理 2021-01-01