使用 Visual Studio 构建 GMP 库?

发布于 2024-07-25 10:07:28 字数 659 浏览 3 评论 0原文

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

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

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

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

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).

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

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.

Edit:
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/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷弦 2024-08-01 10:07:28

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).

夏见 2024-08-01 10:07:28

如果您想在 Windows 上快速开始使用 GMP,我分享了一个使用预构建 GMP 的 Visual Studio 项目:https:// stackoverflow.com/a/38176221/1327178

If you want to quickly get started with GMP on windows, I've shared a my Visual Studio project which uses prebuilt GMP: https://stackoverflow.com/a/38176221/1327178.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文