Skip to content

Cppcheck Linux #229

Answered by AAsyunkin-se
AAsyunkin-se asked this question in Q&A
Apr 1, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Ok, I think I got to the bottom of this.

Ubuntu repos install ridiculously old cppcheck versions. On 1804 it installed 1.84, dating many years back. So features like --project were not even supported. That's the reason I saw 'No C or C++ source files found'.
On 2004 it installs 1.96 or something...where the latest is 2.10. Also not great.

You are probably on Windows - the only target that cppcheck creators maintain. :)

Solution for non-Win - download latest package, build it and install via 'sudo make install'. Installation is mandatory as otherwise cppcheck won't find files it needs to run the check (in my case it complained that platform arm32-w2t doesn't exists).

Thank you for the hint…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@AAsyunkin-se
Comment options

@github0null
Comment options

@AAsyunkin-se
Comment options

Answer selected by AAsyunkin-se
@github0null
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants