module - Dynamic loading and symbols sharing -
I am trying to load a module library by dl in this way, So that the module uses the world from the main application. How is this possible? I get an error message from Duppen, which is saying library / name.so: undefined symbol: ... . Its use is the only flag: RTLD_NOW . The module itself is manufactured with the written form -module -avoid-version . The answer is: When adding the main code, -Wl, - export-dynamic All symbols are automatically exported to the libraries loaded. The same question, just asked in a different way: