我可以使用 multilib 和 -m32 使用 64 位 Cygwin 编译 32 位 C++ 代码吗?
Can I compile c++ code 32bit with 64bit Cygwin, using multilib and -m32?
如何使用 64 位 Cygwin 为 32 位架构编译 C++?
您不能使用 multilib 或 -m32。您将必须为此安装软件包 cygwin32-gcc-g++ 或使用 32 位 cygwin。
x86_64-pc-cygwin does 64bit Cygwin, it does not support multilib nor
-m32, it will not do so in the future either, so don't argue about
adding support. "g++" in 64bit Cygwin targets 64bit Cygwin.
Use 32bit Cygwin or the 32 Cygwin cross compiler in 64bit Cygwin
instead. I don't really understand why this is so hard to grasp.
如何使用 64 位 Cygwin 为 32 位架构编译 C++?
您不能使用 multilib 或 -m32。您将必须为此安装软件包 cygwin32-gcc-g++ 或使用 32 位 cygwin。
x86_64-pc-cygwin does 64bit Cygwin, it does not support multilib nor -m32, it will not do so in the future either, so don't argue about adding support. "g++" in 64bit Cygwin targets 64bit Cygwin.
Use 32bit Cygwin or the 32 Cygwin cross compiler in 64bit Cygwin instead. I don't really understand why this is so hard to grasp.