MinGW GCC -- 单个 32 位和 64 位交叉编译器? [英] MinGW GCC -- Single 32-bit and 64-bit cross-compiler?

查看:45
本文介绍了MinGW GCC -- 单个 32 位和 64 位交叉编译器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用 mingw-get 下载了 MinGW-inst,现在我注意到它不能为 x64 编译.

I've downloaded MinGW with mingw-get-inst, and now I've noticed that it cannot compile for x64.

那么是否有任何 32 位 二进制 版本的 MinGW 编译器既可以为 32 位 Windows 编译,也可以为 64 位 Windows 编译?

So is there any 32-bit binary version of the MinGW compiler that can both compile for 32-bit Windows and also for 64-bit Windows?

我不想要可以生成 32 位代码的 64 位版本,因为我希望编译器也能在 32 位 Windows 上运行,而且我在这里只寻找预编译的二进制文件,而不是源文件,因为我花了无数个小时编译 GCC 并失败了,我已经放弃了一段时间.:(

I don't want a 64-bit version that can generate 32-bit code, since I want the compiler to also run on 32-bit Windows, and I'm only looking for precompiled binaries here, not source files, since I've spent countless hours compiling GCC and failing, and I've given up for a while. :(

推荐答案

AFAIK mingw 针对 32 位窗口或 64 位窗口,但不能同时针对这两种窗口,因此您需要安装两次.后者仍被视为测试版.

AFAIK mingw targets either 32 bit windows or 64 bit windows, but not both, so you would need two installs. And the latter is still considered beta.

你想要的是 mingw-w64-bin_i686-mingwmingw-w64-bin_i686-cygwin 如果你想为 windows 64 编译.对于 win32,只需使用你得到的 mingw-get- 安装

For you what you want is either mingw-w64-bin_i686-mingw or mingw-w64-bin_i686-cygwin if you want to compile for windows 64. For win32, just use what you get with mingw-get-inst.

参见 http://sourceforge.net/apps/trac/mingw-w64/wiki/download%20filename%20structure 对文件名的解释.

See http://sourceforge.net/apps/trac/mingw-w64/wiki/download%20filename%20structure for an explanation of file names.

这篇关于MinGW GCC -- 单个 32 位和 64 位交叉编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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