cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

Enable BUILD_CORE_DLL

Open pfultz2 opened this issue 3 weeks ago • 4 comments

pfultz2 avatar Dec 06 '25 05:12 pfultz2

The build is still not tested. The DLL it produces is also unusable because we generate actual libraries for everything (which I stated should not be done). That feature should just be removed and Visual Studio should also not generate a DLL (as also I stated before).

firewave avatar Dec 07 '25 22:12 firewave

@firewave could you explain the overall problem with generating a DLL that is reused by both the GUI and CLI? It sounds like a good idea to me technically to generate it.. however it must of course be tested in some way..

danmar avatar Dec 08 '25 08:12 danmar

The build is still not tested.

I did test this on linux/mac and it does work. I dont have access to windows to test it though.

The DLL it produces is also unusable because we generate actual libraries for everything (which I stated should not be done). That feature should just be removed and Visual Studio should also not generate a DLL (as also I stated before).

It only builds a DLL for cppcheck-core.

All the other libraries that are generated are static and are linked into the executable or the DLL, so they can be discarded and do not make the DLL unusable.

pfultz2 avatar Dec 09 '25 19:12 pfultz2