[英]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: 您有几种选择:
-Wno-implicit-fallthrough
flag from gcc call -Wno-implicit-fallthrough
标志 -Wno-unknown-warning
to suppress the warning -Wno-unknown-warning
以禁止显示警告
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.