如何使用Visual Studio编译Windows的GMP [英] How to compile GMP for windows using Visual Studio

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

问题描述

我正在尝试在Windows上安装gmp.我发现从Windows上的源代码编译的mingw方法.但是无法从gmp 6.1.2或Visual Studio项目中找到二进制文件以便从源代码进行编译.所以问题是:在哪里可以下载gmp 6.1.2二进制文件或使用Visual Studio从源代码进行编译.

I am trying to install gmp on windows. I have found the mingw way of compiling from sources on windows. But was unable to find binaries fro gmp 6.1.2 or visual studio project in order to compile from sources. So the question is: Where can I download the gmp 6.1.2 binaries or compile from sources using Visual Studio.

推荐答案

使用VisualStudio在Windows上编译GMP可能很棘手,但是已经存在一些SO问题,可能会对您有所帮助(取决于您的确切用例):

Compiling GMP on Windows with VisualStudio might be tricky, however there are already some SO questions, that might help you (depending on your exact use-case):

一个简单的答案是,没有GMP的源可以直接使用Visual Studio进行编译,因为GMP是在考虑到UNIX的情况下开发的.

Simple answer is, that there are no sources of GMP compilable directly using VisualStudio as GMP is developed with UNIX in mind.

您的选择摘要:

  1. 使用您的MinGW发行版中提供的GMP版本
  2. 使用MinGW/Cygwin编译自己的GMP
  3. 使用可通过Visual Studio编译的GMP的 MPIR 分支
  4. 尝试自己解决所有编译问题,有关旧版GMP版本的一些提示,请点击此处:

这篇关于如何使用Visual Studio编译Windows的GMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆