Menu

cppcheck: error: unrecognized command line option: "--library=windows"

mark
2015-03-18
2015-03-19
  • mark

    mark - 2015-03-18

    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

     
  • Daniel Marjamäki

    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:

    "c:\Program Files (x86)\Cppcheck\cppcheck.exe" --version
    

    latest cppcheck version is 1.68.

     
  • mark

    mark - 2015-03-19

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.