使用 Visual Studio 构建 GMP 库?

Building GMP library with Visual Studio?(使用 Visual Studio 构建 GMP 库?)

本文介绍了使用 Visual Studio 构建 GMP 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简单的方法来构建 GMP(GNU 多精度算术库,http://gmplib.org)在 Windows 下,使用 Visual Studio 2005?我试图找到有关自己构建图书馆的信息,但找不到任何真正对我有帮助的信息.我自己构建库的经验并不丰富(我已经设法构建了 boost,但仅此而已).

Is there an easy way to build the GMP (GNU Multiple Precision Arithmetic Library, http://gmplib.org) under Windows, using Visual Studio 2005? I tried to find information about building the library myself, but could not find anything that really helped me. I'm not very experienced with building libraries myself (I've managed to build boost, but that's about it).

或者是否有我不知道的稳定(预建)GMP 发行版?

Or is there a stable (pre-built) GMP distribution that I'm unaware of?

MPIR 是一种有效的替代方法吗 (http://www.mpir.org)?在 GMP 网站上对 MPIR 的评论:对于某些 Windows 用户来说,这个愤怒的 GMP 叉子"可能是真正 GMP 的替代品,但他们将不得不处理大量的反 GMP 情绪.

Is MPIR a valid alternative (http://www.mpir.org)? Comment about MPIR on the GMP site: This "angry GMP fork" might be an alternative to the real GMP for some Windows users, but they'll have to deal with lots of anti-GMP sentiments.

MPFR C++ 包装器页面包含 Visual Studio 的 GMP/MPFR 解决方案和编译的 gmp/mpfr 库的信息/链接:http://www.holoborodko.com/pavel/mpfr/

The MPFR C++ wrapper page contains information/links to GMP/MPFR solutions for Visual Studio and compiled gmp/mpfr libraries as well: http://www.holoborodko.com/pavel/mpfr/

推荐答案

MPIR 是一个有效的替代方案.基本上,GMP 人员根本不想支持在 Windows 上构建.正如您所见,Brian Gladman 支持在 Windows 上构建 GMP 有一段时间了.然而,最终他和其他人分叉了 GMP 并创建了 MPIR.这不是唯一的原因,但它是一个很大的驱动因素,MPIR 的关键开发原则之一是它必须构建在 Windows(以及 Linux 和 Mac)上.

MPIR is a valid alternative. Basically, the GMP folk didn't want to support building on Windows at all. Brian Gladman, as you can see, supported GMP building on Windows for a while. However, eventually he and others forked GMP and created MPIR. That wasn't the sole reason but it was a large driving factor and one of the key development principles of MPIR is it must build on Windows (as well as Linux and Mac).

这篇关于使用 Visual Studio 构建 GMP 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:使用 Visual Studio 构建 GMP 库?

基础教程推荐