[英]g++: error unrecognized command-line option -municode using Cygwin
I am trying to build GetDP (finite-element sofware) from source using the 64-bit GNU compilers in Cygwin, namely gcc.exe, g++.exe and gfortran.exe, with their toolchain x86_64-pc-cygwin.我正在尝试使用 Cygwin 中的 64 位 GNU 编译器从源代码构建GetDP (有限元软件),即 gcc.exe、g++.exe 和 gfortran.exe,以及它们的工具链 x86_64-pc-cygwin。 I have the same error while linking the executable getdp.exe (in my case raised by the g++ compiler):链接可执行文件 getdp.exe 时出现同样的错误(在我的情况下,由 g++ 编译器引发):
g++: error: unrecognized command-line option ‘-municode’
How can I solve the issue?我该如何解决这个问题? Are there some packages that can be installed within Cygwin to enable the -municode command in the toolchain of the compilers?是否可以在 Cygwin 中安装一些软件包以启用编译器工具链中的 -municode 命令? I have very little experience with C/C++ programming and compilation.我对 C/C++ 编程和编译的经验很少。 Any help is really appreciated.非常感谢任何帮助。
Strictly related to this issue .与这个问题密切相关。
The problem was not in Cygwin compiler toolchains, but in the CMakeList.txt file of the software I was trying to compile (GetDP).问题不在于 Cygwin 编译器工具链,而在于我试图编译的软件的 CMakeList.txt 文件(GetDP)。 Now the issue is fixed and the executable can be built without any errors using both gcc and mingw-x64 within Cygwin.现在问题已解决,可以在 Cygwin 中使用 gcc 和 mingw-x64 构建可执行文件而不会出现任何错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.