在 Windows 上使用 GMP

发布于 2024-09-10 02:56:33 字数 161 浏览 1 评论 0原文

我正在尝试在 Windows 上的 C++ 程序中使用 GMP,并且我使用 Cygwin 成功编译了它,并且我得到了一个 .a 文件,这是 .lib 文件的 Linux 版本。有没有办法可以将其与 Visual C++ 编译器一起使用,或者有没有办法为 Windows 编译 GMP 以生成 .lib 文件?

I am trying to use GMP in a C++ program on windows, and I compiled it successfully with Cygwin, and I get an .a file, which is linux's version of a .lib file. Is there a way I can use this with the Visual C++ compiler, or is there a way to compile GMP for windows to produce a .lib file?

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

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

发布评论

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

评论(1

我们只是彼此的过ke 2024-09-17 02:56:33

我不知道如何创建 .lib 文件,但您可能想查看 mpir。 MPIR 是 GMP 的一个分支,可使用 Visual Studio 2008 和 2010 进行编译。

I don't know about creating a .lib file, but you may want to look at mpir. MPIR is a fork of GMP that compiles with Visual Studio 2008 and 2010.

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