Just for the record, these are the settings I’m always using with Visual Studio 2019, when creating a new, empty C++ project:
- General
- Output Directory:
$(SolutionDir)$(Platform)_$(Configuration)\
- Intermediate Directory:
$(Platform)_$(Configuration)\
- C++ Language Standard:
ISO C++20 Standard (/std:c++20)
- Output Directory:
- C/C++
- General
- Debug Information Format:
None
(Release) - Treat Warning As Errors:
Yes (/WX)
(Release) - Multi-processor Compilation:
Yes (/MP)
- Debug Information Format:
- Code Generation
- Runtime Library:
Multi-threaded (/MT)
(Release)
- Runtime Library:
- General
- Linker
- Debugging
- Generate Debug Info:
No
(Release)
- Generate Debug Info:
- System
- SubSystem:
Windows (/SUBSYSTEM:WINDOWS)
- SubSystem:
- Debugging
As of April 2024, the settings above also apply to Visual Studio 2022.