CppChecker Installation

Prerequisites:

These installations may be omitted, however it is recommended to install the CDT!

  • Installation of Eclipse with CDT. CppChecker will also work without CDT, but less comfortable. The automatic rebuild after changing headers is disabled without CDT. Also imports to the CDT settings won't work.
  • For use with gcc: installation of gcc (on Windows™ see: Cygwin)
  • For use with doxygen: installation of doxygen (see www.doxygen.org)

Download / Installation:

  • In Eclipse choose:
    • Help / Software-Updates
    • add the update site URL
      • URL: http://www.jaylib.org/cppchecker
    • follow the assistant dialog
    • be sure to check at least one of the parsers that come along with CppChecker or else there will be nothing to check!

The current update site is also available for Download.

Activation:

  • In Window->Preferences->CppChecker you can specify all the default settings that are used for all projects - these are normally the paths of the used tools.
  • In project settings:
    • select CppChecker Settings and verify the entries. Activate and configure the parsers you need. A good advice is, to do that one by one and not all together. Be aware that you'll have to add all the include directories you need. You can use the "Import CDT settings" to import the settings to the parser settings.
    • If you only want to use Eclipse as editor, but not for debuggging or building, you might want to check which Builder is still needed in Builders: deactivation of CDT Builders is recommended. To do this: remove the ticks from "CDT Builder" and "Scanner Configuration Builder" in the "Builder" section of the project properties. However any markers generated by the CDT builder are overwritten by the CppChecker markers!

That's it! happy smiley

Now your C/C++-Files will be checked with the new CppChecker.



::history::CppChecker/CppChecker? > CppChecker/DoxygenSupport > CppChecker/GCCSupport > CppChecker/Installation