cppcheck can't find include files

前端 未结 2 903
耶瑟儿~
耶瑟儿~ 2021-02-07 00:52

cppcheck can\'t find even standard headers such as iostream. Any ideas?

I am using Ubuntu 11.04 and cppcheck from the repository.

2条回答
  •  春和景丽
    2021-02-07 01:26

    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 .
    

提交回复
热议问题