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

2023-06-30C/C++开发问题
15

本文介绍了如何在 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

无法访问 C++ std::set 中对象的非常量成员函数
Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)...
2024-08-14 C/C++开发问题
17

从 lambda 构造 std::function 参数
Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)...
2024-08-14 C/C++开发问题
25

STL BigInt 类实现
STL BigInt class implementation(STL BigInt 类实现)...
2024-08-14 C/C++开发问题
3

使用 std::atomic 和 std::condition_variable 同步不可靠
Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)...
2024-08-14 C/C++开发问题
17

在 STL 中将列表元素移动到末尾
Move list element to the end in STL(在 STL 中将列表元素移动到末尾)...
2024-08-14 C/C++开发问题
9

为什么禁止对存储在 STL 容器中的类重载 operator&()?
Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)...
2024-08-14 C/C++开发问题
6