1

I'm trying to implement a resizable array class in C++. I started out with a basic C++ Console Application Template. I'm unable to build the basic Hello World program in Visual Studio 2022. This is all the code in my main.cpp file-

#include <iostream>

using namespace std;

int main()
{
    std::cout << "Hello World!\n";
    return 0;
}

And these are my build logs for the above project.

6
  • 2
    I think you corrupted this file from your windows SDK: C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_memcpy_s.h Commented Mar 2, 2022 at 12:04
  • 1
    Go back to the installer and reinstall the SDK Commented Mar 2, 2022 at 12:04
  • @drescherjm Reinstalled the complete c++ development kit pastebin.com/Hd07HEdy new error log Commented Mar 2, 2022 at 18:38
  • Looks the same. You may have to ask Microsoft. Commented Mar 2, 2022 at 19:05
  • One thing that is odd is my: corecrt_memcpy_s.h file starts with a comment on the first line (although I have a different / older sdk installed). Your errors seem to indicate that there is no comment on the first line of this file for you. Commented Mar 2, 2022 at 19:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.