问题描述
我已经使用,现在我已经注意到它无法编译为x64。
那么是否有任何 32位 二进制版本的MinGW编译器,它既可以编译为32位Windows,也可以编译为64位Windows?
我不想要64位版本,可以生成32位代码,因为我希望编译器也可以在32位Windows上运行,而我只在这里寻找预编译的二进制文件,而不是源文件,因为我花了无数小时编译GCC失败了,我已经放弃了一段时间。 :AFAIK mingw的目标是32位窗口或64位窗口,但不是两者,所以你需要两次安装。而后者仍被认为是测试版。
对于你而言,要么是或 if你想为windows 64编译。对于win32,只需使用你在mingw-get-inst中获得的内容即可。
请参阅文件名。
I've downloaded MinGW with mingw-get-inst, and now I've noticed that it cannot compile for x64.
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?
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 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.
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.
See http://sourceforge.net/apps/trac/mingw-w64/wiki/download%20filename%20structure for an explanation of file names.
这篇关于MinGW GCC - 单个32位和64位交叉编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!