Issue Encountered with C++ Compilation in Qt Creator and MSVC
-
Hi,
Context
I am developing a Qt Desktop application on Windows using Qt Creator, with the Qt 6.8.3 MSVC2022 64bit kit. My project is properly set up on the Qt side (kits, sources, .pro file, etc.), but I am running into compilation errors due to the inability to find standard C/C++ header files (such as string.h, crtdbg.h), even though they are present in the Windows SDK.Observed Symptoms
Compilation error:mainwindow.h:4:10: In included file: 'crtdbg.h' file not found yvals.h:20:10: error occurred here
After creating or renaming a file as string.h, other essential files (such as crtdbg.h) are still missing.
The standard SDK paths (e.g., C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h) do exist on disk.
Manually adding paths to the environment variables (INCLUDE, LIB) of the kit in Qt Creator has not resolved the issue.
Thanks for helping.
-