vs code multiple build errors,crtdbg.h no such file or directory

Fadeyauso 0 Reputation points
2023-03-02T13:38:31.47+00:00

User's image

windows sdk 10 is installed and in the windows kits it existing.

Developer technologies | C++
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. YujianYao-MSFT 4,296 Reputation points Microsoft External Staff
    2023-03-03T05:58:16.17+00:00

    Hi Fadeyauso,

    crtdbg.h is a ucrt header file which is saved in the Windows SDK ucrt foder: C:\Program Files (x86)\Windows Kits\10\Include{version}\ucrt.

    If you have installed Windows SDK, please add the path of SDK include folder into project property->VC++ Directories->Include Directories.

    Best regards,

    Elya


    If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.