question

BernardIE5317-7736 avatar image
0 Votes"
BernardIE5317-7736 asked WayneAKing-0228 answered

How to Build a Module

I wish to build a C++ module I wish to build it separately from any other project All tutorials I've found build a module along w/ a Hello World executable That makes no sense Modules are intended to be consumed by any number of projects So it seems they should be built separately Also once the module is built where does it reside How do I find it How does one import it to a project I assume one can not merely write import MyModule; as how can the compiler find it Thank You Kindly

c++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

WayneAKing-0228 avatar image
0 Votes"
WayneAKing-0228 answered

Have you read these docs?

Overview of modules in C++
https://docs.microsoft.com/en-us/cpp/cpp/modules-cpp?view=msvc-160

A Tour of C++ Modules in Visual Studio
https://devblogs.microsoft.com/cppblog/a-tour-of-cpp-modules-in-visual-studio/

  • Wayne


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.