http://www.qtcentre.org/forum/showthread.php?t=638
In short:
In one plugin you must use something like this:
#ifdef CREATE_FIRST_PLUGIN
# define FIRST_PLUGIN_EXPORT Q_DECL_EXPORT
#else
# define FIRST_PLUGIN_EXPORT Q_DECL_IMPORT
#endif
#ifdef CREATE_FIRST_PLUGIN
# define FIRST_PLUGIN_EXPORT Q_DECL_EXPORT
#else
# define FIRST_PLUGIN_EXPORT Q_DECL_IMPORT
#endif
To copy to clipboard, switch view to plain text mode
while in second one:
#ifdef CREATE_SECOND_PLUGIN
# define SECOND_PLUGIN_EXPORT Q_DECL_EXPORT
#else
# define SECOND_PLUGIN_EXPORT Q_DECL_IMPORT
#endif
#ifdef CREATE_SECOND_PLUGIN
# define SECOND_PLUGIN_EXPORT Q_DECL_EXPORT
#else
# define SECOND_PLUGIN_EXPORT Q_DECL_IMPORT
#endif
To copy to clipboard, switch view to plain text mode
The CREATE_FIRST_PLUGIN and CREATE_SECOND_PLUGIN macros should be defined using DEFINES variable in the .pro files. This way you will be exporting symbols only from the DLL you are currently building, while other symbols will be imported.
Bookmarks