检查已安装的mingw(32位或64位)的平台 [英] check the platform of the installed mingw, 32bit or 64 bit

查看:1588
本文介绍了检查已安装的mingw(32位或64位)的平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用C ++编程.我已经安装了mingw.我是从mingw网站的标准安装程序安装的.我对mingw32,mingw,mingw64感到困惑.有什么区别以及如何检查我的版本.另外,在构建程序时,我怎么知道创建的可执行文件是32位还是64位?

I am programming in c++. I have installed mingw. I installed it from the standard installer from mingw website. I am confused between mingw32, mingw, mingw64. What are the differences and how can I check my version. Also when my programs are build, how would I know whether the executables created are 32 bit or 64 bit?

推荐答案

mingw和mingw32用于为32位Windows系统创建可执行文件. mingw64用于创建64位可执行文件.注意:这与构建时所运行的版本无关,但与要创建的可执行文件的目标系统有关(将在其上运行新创建的可执行文件的系统).

mingw and mingw32 are for creating executables for 32-bit windows systems. mingw64 is for creating 64-bit executables. Note: this doesn't have to do with what version you are running when you do the build, but what the target system is for the executable you are creating (the system on which you will be running the newly created executable).

关于MinGW和MinGW32,这是来自
MinGW Wiki 的摘录

Regarding MinGW and MinGW32, here's a snippet from
The MinGW Wiki

该项目的名称从mingw32更改为MinGW是为了防止 暗示MinGW将只能在32位系统(如64位和 高位机器变得越来越普遍,MinGW将发展为与 他们).

"The project's name changed from mingw32 to MinGW is to prevent the implication that MinGW will only works on 32 bit systems (as 64 and higher bit machines become more common, MinGW will evolve to work with them)."

要了解您拥有的版本,请转到关联的bin目录并执行以下操作:

To find out what version you have, go the the associated bin directory and do:

gcc --version

我建议从以下位置检出minGW-w64: http://mingw-w64.sourceforge.net/
该项目的目标是提供运行时,标头和库,以使用gcc-4.6或更高版本开发64位(x64)和32位(x86)Windows应用程序."

I'd recommend checking out minGW-w64, from here: http://mingw-w64.sourceforge.net/
That projects goal is to "deliver runtime, headers, and libs for developing 64 bit (x64), as well as 32 bit (x86), windows applications using gcc-4.6 or newer versions."

这篇关于检查已安装的mingw(32位或64位)的平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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