Just to make some things clear:
1) CppCheck is a
statc code analyzer, so cppcheck is unaware what compiler you are using for your program or what your platform is
2) CppCheck is a stand alone program, the c::b plugin simply calls cppcheck.exe on all project files and parses the log so errors like:
The program can't start because MSVCP140.dll is missing from your computer. Try reinstalling the program to fix this problem."
is a runtime error of cppcheck not c::b. This has nothing to do with your compiler or with codeblocks. It says simply that your cppcheck version is compiled with the visual studio 2015 runtime. This also don't mean that you have to install Visual Studio, or the Visual Studio compiler. You simply have to install the Visual Studio
Runtime libraries, (a batch of dlls). You can find them here:
https://www.microsoft.com/en-us/download/details.aspx?id=48145 If you install them cppcheck should run without problems
However, you are aware that you can run cppcheck outside of Code::Blocks, right?
No he can't because his VC Runtime is missing....
Thanks for the help everyone. This is getting more complicated than I'm comfortable with. I think I'll just end up writing a wrapper for malloc() and free() to look for memory leaks.
You are thinking way to complicated... Simply install the runtime
BUT: For finding memory leaks cppcheck is not the best tool. On linux i would recommend Valgrind but this tool does not exists on windows. So Dr. Memory is a good alternative or as you said overwriting malloc and free...
greetings