Brand new install of VS extension/add-in version 1.2.1 on VS2013 x64 gives me that error in the Output window (and nothing in the results window) regarding the library command line option. Brief google search seems to indicate it's a valid option. Looks like this (with my stuff removed, a bunch of includes and a bunch of files):
Starting analyzer with arguments: --inline-suppr -v --template="{file}|{line}|{severity}|{id}|{message}" --library=windows --library=std --enable=information,portability,warning,style,performance --relative-paths="{...}" -j 8 --suppress=unmatchedSuppression -I"{...}" "{...}" --force
cppcheck: error: unrecognized command line option: "--library=windows".
c:\Program Files (x86)\Cppcheck\cppcheck.exe has exited with code 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
it sounds like the cppcheck you have installed is old. what version of Cppcheck do you have installed on your computer? You can see that with this command in a dos-prompt:
I just used whatever version the extension installer used, which was apparently 1.60.1. Sure enough, doesn't support --library. I updated to 1.68 by overwriting with the latest form sourceforge and all is well. Odd that they'd provide default arguments that don't work with included package. Anyway, thanks.
Last edit: mark 2015-03-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Brand new install of VS extension/add-in version 1.2.1 on VS2013 x64 gives me that error in the Output window (and nothing in the results window) regarding the library command line option. Brief google search seems to indicate it's a valid option. Looks like this (with my stuff removed, a bunch of includes and a bunch of files):
Starting analyzer with arguments: --inline-suppr -v --template="{file}|{line}|{severity}|{id}|{message}" --library=windows --library=std --enable=information,portability,warning,style,performance --relative-paths="{...}" -j 8 --suppress=unmatchedSuppression -I"{...}" "{...}" --force
cppcheck: error: unrecognized command line option: "--library=windows".
c:\Program Files (x86)\Cppcheck\cppcheck.exe has exited with code 1
it sounds like the cppcheck you have installed is old. what version of Cppcheck do you have installed on your computer? You can see that with this command in a dos-prompt:
latest cppcheck version is 1.68.
I just used whatever version the extension installer used, which was apparently 1.60.1. Sure enough, doesn't support --library. I updated to 1.68 by overwriting with the latest form sourceforge and all is well. Odd that they'd provide default arguments that don't work with included package. Anyway, thanks.
Last edit: mark 2015-03-19