Get the App
SLTechnology News&Howtos  ›  Development  › 

Operation method of Visual Studio 2022 Preview using C++20Module

Shulou Source: shulou.com Published: 2022-06-03 10:13:16 11月15日 Update

This article shows you how to use C++20Module in Visual Studio 2022 Preview. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

As a major feature of Visual Studio 20, it is said that Module can greatly speed up the compilation of projects. Recently, Microsoft has launched a preview version of Visual Studio 20, along with the latest tool chain for Craft 20.

The experience project is very simple, just two small files:

1. Hello.ixx

Export module mo.hello.cpp; export auto hello () {return "hello cpp module";}

2. Main.cpp

Import mo.hello.cpp;import std.core; int main () {std::cout

Tags: Attributes modules projects compilation selection configuration standards languages Clearing tools experiments methods content skills solutions knowledge solutions resources resource management errors experiences Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MySQL Docker Shulou Information Apple