Error Creating EXE file

R SHepherd 21 Reputation points
2022-03-23T02:01:15.003+00:00

In both visual studio 2022 and visual studio code the following code compiles fine but i get an error creating the exe.

I realize there should be a std:: infront of endl in line 6 but the error remains the same

the code compiles file but it cant seem to create the exe

185827-err.jpg

Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
0 comments No comments
{count} votes

Answer accepted by question author
  1. YujianYao-MSFT 4,296 Reputation points Microsoft External Staff
    2022-03-23T05:35:50.54+00:00

    Hi @R SHepherd ,

    Your executable did not build. If you look in the console output you have an error: cannot include crtdbg.h.

    The solution to the problem is to install the corresponding Windows SDK in the Visual Studio installer:

    185963-setrr.png

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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