r/cpp • cmake dev • Jun 01 '26

BMI Compatibility: Testing Build System C++ Modules Support

https://blog.vito.nyc/posts/bmi-compatibility/
68 Upvotes

43 comments sorted by

View all comments

Show parent comment

7

u/GabrielDosReis Jun 01 '26

If the question of "how are DLLs supposed work with modules?" ever came up during the committee meetings about modules, I'm certain that somebody must have said, "but why do you need DLLs now that we have modules?"

ISO C++ doesn't know what is DLL or dylib or .so. There were attempts ij the early cycle of C++0x to acknowledge them and support for them but I believe Pete Becker eventually concluded it was going to create more mess at the standards level.

I implemented that translation very early on in my MSVC implementation as I considered it a logical consequence of macro isolation, separate compilation, and re-use independently of context (the BMI compatibility question is a consequence of those axes).