...

/

Compilation and Use

Compilation and Use

Understand the compilation of modules using different compilers.

To compile the module math.ixx used by the client program client.cpp, you have to use a very recent Clang, GCC, or Microsoft compiler.

The compilation of a module is challenging. For that reason, I show as an example the compilation of the module with the Microsoft compiler and the Clang compiler.

Microsoft Visual compiler

First, I use the cl.exe 19.25.28614 for the x64 compiler.

These are the steps to compile and use the module with the Microsoft compiler. I only show the minimal command line. As promised, more ...

Press + to interact
cl.exe /experimental:module /c math.ixx
cl.exe /experimental:module client.cpp math.obj
  • Line 1 ...