Reputation: 1
I am using a static docker that checks the codes of a project. ( See https://github.com/Ericsson/codechecker/blob/master/docs/usage.md for more details).
I got a C++ Project that I needed to analyse. I built the Project on eclipse and the rebuilt it using the Codechecker docker on the terminal. And the I generated a "makefile" using the "make"/ "makeall" command.
After analysing the compilation.json of the project. I got the following errors:
cppcheck: error: unrecognized command line option: "--std=c++0x".
I tried changing the configuration on eclipse, by adding on the Building configuration the "--std=c++0x" and "--std=c++11" option. I also did the following:
cc1plus: error: unrecognized command line option "-std=c++0x"
How and where can I add a configuration that lets the cppcheck recognises the line 2--std=c++0x"?
Upvotes: 0
Views: 573
Reputation: 3037
I am a cppcheck developer. Sorry for late reply. Not sure what problem you have both "--std=c++0x" and "--std=c++11" works fine as far as I see. can it be reproduced on some simple test file?
These commands work fine for me:
echo "a=1;" > file1.cpp
cppcheck --std=c++0x file1.cpp
cppcheck --std=c++11 file1.cpp
Upvotes: 0