Search code examples
c++windowscodeblockscppcheck

Installing CppCheck on Codeblocks


I have downloaded Codeblocks in a Windows 10 computer and now I am trying to install CppCheck on it.

However, also surfing the net to find a solution, I can't understand how can I install CppCheck (on Codeblocks). Can anyone explain it to me?


Solution

  • Steps to follow :

    • Download Codeblocks
      • Cppcheck is a Contrib plugin integrated in Codeblocks
      • So, choose the setup from the download page which has all the plugins available
    • Install Codeblocks
      • Make sure Cppcheck plugin is selected under Contrib plugins
    • Install Cppcheck tool for your respective platform
    • Open Codeblocks and open the Environment Settings via the Settings Menu
      • Scroll down and select the Cppcheck/Vera++ Tab
      • Change the Cppcheck application field by clicking on the button with ...
      • Navigate to the path where Cppcheck tool was installed (Ex: C:\Program Files\Cppcheck\cppcheck.exe)
      • Click OK
    • Open a project in Codeblocks and under Plugins Menu select CppCheck to run the tool