r/cpp • u/holyblackcat • Mar 09 '26
The compilation procedure for C++20 modules
https://holyblackcat.github.io/blog/2026/03/09/compiling-modules.html
103
Upvotes
r/cpp • u/holyblackcat • Mar 09 '26
View all comments
Show parent comment
1
u/luisc_cpp Mar 11 '26
Always found that `.o` file a tad confusing _when_ the module itself doesnt contain definitions and its only interfaces - as the `.o` is "almost" empty.
But when the implementation of the module is in a shared library, the fact that the .o file still gets generated at import site gives me "this translation unit may end up in multiple places" vibes...