I have a Main executable that loads .dll
/.so
Plugins, which works just fine in Linux but on windows(Visual Studio 2012), it fails with undefined reference errors.
The plugin uses functions like session->SendLine("bla")
which are defined in the Main executable. (class of session ans methods defined in a .h included in the plugin, but the actual function in a .cpp compiled in main exec).
tl;dr: "I need the windows linker to ignore undefined references in plugins, defined in the main executable"
What is the best way to "make it work" in windows but keep it compatible with Linux without a million #ifdef
's?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…