Reputation: 23
I got the following error on Ubuntu 16.04:
$ cppcheck --project=compile_commands.json
cppcheck: error: unrecognized command line option: "--project=compile_commands.json".
I already tried reinstalling cppcheck. Does anyone know to what this error is related?
Upvotes: 1
Views: 771
Reputation: 94849
cppcheck
doesn't support the --project
option on the version available by default on Ubuntu 16.04 (xenial). The version of cppcheck
there is 1.72
If you wish to use the option --project
then install a newer cppcheck
.
sudo snap install cppcheck
).Upvotes: 2