Many thanks D_stranz for your helpful reply
In fact I had already more or less figured out how to configure Q_DECL_EXPORT and Q_DECL_IMPORT for the plugin. My problem is kind of opposite: I want my plugin to be able to use methods or classes that are inside the main application. That is where I am getting undefined externals with msvc, and not with gcc. I have tried to put Q_DECL_EXPORT or Q_DECL_IMPORT when declaring the classes in the main app that I want my plugin to be able to call, but that didn't work. Maybe that is not possible, as I said gcc is compiling but that does not prove it will be executable.... Of course I could add all the classes I need inside the plugin project but I will end-up with a plugin almost as big as the main application...
Bookmarks