Reputation: 29
I installed the visual studio 2022 community edition with a C++ Desktop development packageScreenshot of Visual Studio Installer. When a new console application is built getting errors C++ standard libraries could not be found. Please let me know how to resolve this issue.Screenshot of Visual Studio 2022 build errors.
Upvotes: 1
Views: 8184
Reputation: 4116
To fix the error, you need to specify the installed SDK version in the project's properties -> Windows SDK Version.
Upvotes: 0
Reputation: 63
For me VS2022 17.2.6 required both "Desktop development with C++" and "Windows 11 SDK" enabled in the installation details on the right hand side. I had the Windows 10 SDK enabled before but (as the name might suggest) that was insufficient since I am running Windows 11.
In case you do not know where to find those settings: --> Visual Studio Installer --> Modify button next to your VS 2022 installation
Upvotes: 0
Reputation: 106
Start Visual Studio Installer and select "desktop development with C++".
Upvotes: 2