I have the following problem: My (C++-)project consists of several subprojects. In each, I have several files with code I want to run at startup. My solution so far is to us
Some trick, but review it.
For Win system (but not linux) use explicit dllexport - in this case linker doen't knows if this symbol used by outer app or not.