Question: I have an existing C++ project, and although I’m being pretty experienced with C++ itself, I haven’t dony anything with modules yet and I thought it was time to finally bite that bullet. I have a small library which ...

Question: C++ project, using Clang on it’s version 14, Windows as OS and with the language level up to c++20. So take the next code: main.cpp compiled with: clang++ --std=c++20 -stdlib=libc++ -fmodules -fimplicit-modules -fbuiltin-module-map -fimplicit-module-maps -o ./out/cpp-design-patterns code/main.cpp ./out/modules/interfaces/builder.pcm -fprebuilt-module-path=./out/modules/interfaces ...

Question: I have 3 files, namely engineering.cpp, engineering.ixx and system.ixx. Contents briefly are: system.ixx: engineering.ixx engineering.cpp In another cpp file I use it as: The project compiles and works well but in engineering.cpp intellisense gives 99+ errors and code-completion and ...

Question: On cppreference.com about modules it says about export: Module interface units can export declarations and definitions, which can be imported by other translation units. [ … ] All declarations and definitions exported in the module interface units of the given named ...

Question: I’m looking C++20 modules, and I’m asking how to make shared libs with modules. All examples (I’ve found), works in same directory (lib + main) so there is no problem on compilation time. But if I want to make ...