cppcheck找不到包含文件 [英] cppcheck can't find include files
本文介绍了cppcheck找不到包含文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
cppcheck甚至找不到标准头(例如iostream).有什么想法吗?
cppcheck can't find even standard headers such as iostream. Any ideas?
我正在使用Ubuntu 11.04和存储库中的cppcheck.
I am using Ubuntu 11.04 and cppcheck from the repository.
推荐答案
cppcheck在Mac和Linux上很难找到标准的头文件.幸运的是,您可以取消此检查,而只扫描您的自定义头文件:
cppcheck is really bad at finding standard include headers, on Mac and Linux. Fortunately, you can suppress this check, and only scan your custom header files:
cppcheck --enable=all --suppress=missingIncludeSystem .
这篇关于cppcheck找不到包含文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文