cppcheck can't find include files

pic11 picture pic11 · Aug 8, 2011 · Viewed 29.3k times · Source

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

I am using Ubuntu 11.04 and cppcheck from the repository.

Answer

mcandre picture mcandre · Nov 5, 2013

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 .