The command line interface is accessible and working on Windows too.
The where command only searches in the current directory and in the directories configured in the PATH environment variable. Since cppcheck (or better the installer) does not add it's directory to the PATH variable (and IMHO should not do that), you will get no results until you are already in the correct directory.
When calling cppcheck via a batch script i use the full path, for me that is "C:\Program Files\Cppcheck\cppcheck".
I guess you can just add the path to cppcheck.exe to the PATH environment variable so you do not have to enter it all the time, but i have not tried that yet.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I downloaded and installed "cppcheck"..
However, when I go to the windows command prompt and type "where cppcheck", nothing can be found.
What'S going on here? Is the command line interface for cppcheck only accessible on Unix systems?
The command line interface is accessible and working on Windows too.
The
where
command only searches in the current directory and in the directories configured in thePATH
environment variable. Since cppcheck (or better the installer) does not add it's directory to thePATH
variable (and IMHO should not do that), you will get no results until you are already in the correct directory.When calling cppcheck via a batch script i use the full path, for me that is
"C:\Program Files\Cppcheck\cppcheck"
.I guess you can just add the path to cppcheck.exe to the
PATH
environment variable so you do not have to enter it all the time, but i have not tried that yet.I've added CppCheck's installation folder to my PATH variable and can call cppcheck by command line from any working directory without issue.
amai
created a ticket regarding adding the path to the PATH variable by the installer:https://trac.cppcheck.net/ticket/8464