Visual Studio C++ 上的 GMP [英] GMP on visual studio c++

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

问题描述

我是 C++ 编程的新手.我为我的视觉工作室安装了 OpenSSL.我想为 Visual Studio 安装 GMP.我该怎么做?没有像 gmp.exe 这样的文件.我不知道如何安装这个.任何帮助,将不胜感激.

I'm new for the c++ programming. I installed OpenSSL for my visual studio. I would like to install GMP for visual studio. How should I do that? There is no file such as gmp.exe. I dont know how to install this. Any help would be appreciated.

推荐答案

在 windows 上安装 GMP 并不难.

It isn't that hard to install GMP on windows.

首先,下载 GMP tar 文件.您必须使用 gcc、make 和 m4 在 windows 上安装 cygwin.然后,您可以使用 cygwin 运行 linux 命令.解压 tar 文件,然后(推荐检查 INSTALL 文件).

First, download the GMP tar file. You have to install cygwin on windows with gcc, make and m4. You can then run linux command using cygwin. Decompress the tar file, then (RECOMMEND to check out the INSTALL file).

./configure,如果你需要一些特殊的东西比如运行c++ gmp 代码,你必须添加标志.执行./configure --help 来检查一下.然后运行makemake check,最后运行make install.

Do ./configure, if you need anything special like running c++ gmp code, you have to add flags. Do./configure --help to check it out. Then run make, make check, and finally run make install.

您必须将路径添加回您的项目属性.享受!

You will have to add the path back to your project properties. Enjoy !

这篇关于Visual Studio C++ 上的 GMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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