Re:Trying out C++20's modules with Clang and Make
by mathstuf on Monday October 16, 2023 @08:45AM
(#37899087)
Modules don't have search paths unless you toss everything into one directory. The robust way is to instead do `-fmodule-path=modname=path/to/bmi` where ambiguity is non-existent. It is IFNDR to have two modules of the same name in a program (basically just a restatement of the ODR on the module initialization function). Due to the compatibilities, there may be more than one BMI for a single module in a build, but that module can only exist at link or run time once.
The module equivalent would be different versions of the same module under the same import name. Can the C++ module system actually deal with that?