C++ compiler support : https://en.cppreference.com/w/cpp/compiler_support
- Create an empty C++ project
- Open project properties: Alt + Enter
- Go to Configuration Properties → C/C++ → Language, and set the C++ Language Standard option to Preview - Features from the Latest C++
- In the same section, set Enable Experimental C++ Standard Library Modules to Yes (/experimental:module)
- Go to Configuration Properties → C/C++ → Advanced and set the Compile As option to Compile as C++ Module Internal Partition (/internalPartition)
- Add header file to your project, which contains an import declaration for every standard library header you want to import. For example:
- #pragma once import <iostream>; import <array>; import <vector>;
- Recompile your project
- Done, now everything should work fine
A Tour of C++ Modules in Visual Studio
C++ module support has arrived in Visual Studio! Grab the latest Visual Studio Preview if you want to try it out. C++ modules can help you compartmentalize your code, speed up build times, and they work seamlessly, side-by-side with your existing code.
devblogs.microsoft.com
'Mastering GUI Programming with Python' 카테고리의 다른 글
QWidgets (0) | 2022.05.07 |
---|---|
Qt Designer (0) | 2022.05.07 |
기본 실행 (0) | 2022.05.06 |
Mastering GUI Programming with Python (0) | 2022.05.06 |