简体   繁体   English

g++:错误无法识别的命令行选项 -municode 使用 Cygwin

[英]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.

相关问题 g++:错误:无法识别的命令行选项“--cflags” g++:错误:无法识别的命令行选项“--libs” - g++: error: unrecognized command-line option '--cflags' g++: error: unrecognized command-line option '--libs`' 优胜美地 g++ 上的 capybara-webkit:错误:无法识别的命令行选项“-Xarch_x86_64” - capybara-webkit on yosemite g++: error: unrecognized command line option '-Xarch_x86_64' cc1plus:错误:无法识别的命令行选项“ -fsysroot = <path> ”和g ++ - cc1plus: error: unrecognized command line option “-fsysroot=<path>” with g++ cc1plus:错误:使用g ++无法识别的命令行选项“-std = c ++ 11” - cc1plus: error: unrecognized command line option “-std=c++11” with g++ c++:错误:无法识别的命令行选项“-target” - c++: error: unrecognized command-line option ‘-target’ g ++:错误:无法识别的选项&#39;--as-needed&#39; - g++: error: unrecognized option ‘--as-needed’ 安装以C ++编写的Python软件包(左)时出错:g ++无法识别的命令行选项--output-lib - Error installing Python package (leven) written in C++: g++ unrecognized command line option --output-lib Scons选择哪个g ++版本| 无法识别的命令行选项“ -std = c ++ 11” - which version of g++ does Scons pick | unrecognized command line option “-std=c++11” g ++错误,无法识别的选项,--subsystem控制台”在ubuntu中的eclipse中 - g++ error, unrecognized option, --subsystem console" in eclipse in ubuntu 为什么“cc1plus:警告:无法识别的命令行选项”用于“no-”选项仅在有另一个警告时由g ++标记? - why is “cc1plus: warning: unrecognized command line option” for “no-” options only flagged by g++ when there is another warning?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM