简体   繁体   English

cc1plus:错误:无法识别的命令行选项“ -Wno-implicit-fallthrough” [-Werror]

[英]cc1plus: error: unrecognized command line option “-Wno-implicit-fallthrough” [-Werror]

I am getting this error when I am cross compiling compute library on x86 for arm by using SCons. 通过使用SCons在x86上为arm交叉编译计算库时,出现此错误。 Here I am cross compiling this to run a tensorflow model on armnn sdk. 在这里,我交叉编译此代码以在armnn sdk上运行一个Tensorflow模型。 How I can solve this error? 我该如何解决这个错误?
Please give me suggestion. 请给我建议。

-Wno-implicit-fallthrough was first added in gcc-7 . -Wno-implicit-fallthrough 首先在gcc-7中添加 You are probably using an older version of the compiler, which does not recognize the option. 您可能正在使用较旧的编译器版本,该版本无法识别该选项。

You have several options: 您有几种选择:

  • Use later version of gcc 使用更高版本的gcc
  • Remove -Wno-implicit-fallthrough flag from gcc call 从gcc调用中删除-Wno-implicit-fallthrough标志
  • Add -Wno-unknown-warning to suppress the warning 添加-Wno-unknown-warning以禁止显示警告

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 cc1plus:错误:无法识别的命令行选项“ -fsysroot = <path> ”和g ++ - cc1plus: error: unrecognized command line option “-fsysroot=<path>” with g++ cc1plus:错误:无法识别的命令行选项“ -std = gnu ++ 11” - cc1plus: error: unrecognized command line option “-std=gnu++11” 为什么我得到cc1plus:错误:无法识别的命令行选项“-arch”? - Why do I get cc1plus: error: unrecognized command line option “-arch”? cc1plus:错误:使用g ++无法识别的命令行选项“-std = c ++ 11” - cc1plus: error: unrecognized command line option “-std=c++11” with g++ 无法解析cc1plus:错误:无法识别的命令行选项“ -std = c ++ 11” - Failed to resolve cc1plus: error: unrecognized command line option “-std=c++11” cc1plus:错误:无法识别的命令行选项“-std=c++0x” - cc1plus: error: unrecognized command line option "-std=c++0x" cc1plus:错误:hxcpp无法识别的命令行选项“ -stdlib = libstdc ++” - cc1plus: error: unrecognized command line option “-stdlib=libstdc++” with hxcpp 错误:在构建 Mesos 中无法识别命令行选项“-Wno-invalid-source-encoding”[-Werror] - Error: unrecognized command line option ‘-Wno-invalid-source-encoding’ [-Werror] within building Mesos cc1plus:对任何其他警告的无法识别的命令行选项警告 - cc1plus: unrecognized command line option warning on any other warning cc1plus:错误:-Werror =文字后缀:无选项-Wliteral后缀 - cc1plus: error: -Werror=literal-suffix: no option -Wliteral-suffix
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM