The first works properly under win/linux
The one with the shared library works properly under linux
And the one with the static library doesnt work on any os correctly
Nobody got an Idea? I think the problem is, that the compiler recognizes that the binary doesn't need the library at all and therefor optimizes it by not linking the library at all.
But how can I force that it is linked nevertheless?
The thing is, that the module shall register itself to the main program, so the main program hasn't got any knowledge about the module. Is there a possibilty to achieve this functionality?
I got the same problem. i think it links the objects in shared libraries (since the compiler can't know what symbols will be used by the dependant applications), but not for static libraries. Unless you can make your 'plugins' a dynamic library, you will have to reference them at least once.