First C++ console app in Visual Studio not compiling

Ricky Jones 1 Reputation point
2021-12-03T13:56:54.813+00:00

I just installed Visual Studio and tried to create a console application, just by following the new project wizard. I haven't changed anything about the set up, or the code.

It won't compile, it looks like it can't find any of the standard header files.

Please can you look at the screenshot.

I'm not sure what is wrong, any help would be appreciated!

Thanks154836-errors.png

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.
{count} votes

1 answer

Sort by: Most helpful
  1. WayneAKing 4,931 Reputation points
    2021-12-03T18:04:04.393+00:00

    it looks like it can't find any of the
    standard header files.

    The header files it can't find appear to be from
    the C Runtime Library (CRT). That is installed as
    part of the Windows SDK (AFAIK), so make sure that
    your installation includes a version of the Win SDK.

    • Wayne
    0 comments No comments

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.