Hxcpp: Cannot open include file: 'crtdbg.h'

Hi!

Somehow, something has happened to my Visual Studio 2019 Community/SDK 10.0.18362 setup: When kompiling with HxCpp I get the following error:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\yvals.h(12): fatal error C1083: Cannot open include file: 'crtdbg.h': No such file or directory.
Error: Could not create PCH

(I’ve tried reinstalling both VS 2019 and HxCpp - that doesn’t solve it.)

The crtdbg.h thing seems to be an known issue: The asked for ‘crtdbg.h’ file is in the include folder for SDK 10.0.18362.0, and the recommended solution for Visual Studio users seems to be to add the path of SDK include folder into project property settings.

Can I do the same in HxCpp, adding the needed include path by using a compiler flag or something…?

Jonas

1 Like