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


基础教程推荐
- 如何“在 Finder 中显示"或“在资源管理器中显 2021-01-01
- 在 C++ 中循环遍历所有 Lua 全局变量 2021-01-01
- 从 std::cin 读取密码 2021-01-01
- 为 C/C++ 中的项目的 makefile 生成依赖项 2022-01-01
- 为什么语句不能出现在命名空间范围内? 2021-01-01
- Windows Media Foundation 录制音频 2021-01-01
- 如何使图像调整大小以在 Qt 中缩放? 2021-01-01
- 如何在不破坏 vtbl 的情况下做相当于 memset(this, ...) 的操作? 2022-01-01
- 管理共享内存应该分配多少内存?(助推) 2022-12-07
- 使用从字符串中提取的参数调用函数 2022-01-01