Well, well.
I found the problem, quite a little bit stupid a have to admit.
So for anybody who has the same problem my sollution:
I have tried to use the following as interface header:
#if defined(PLUGININTERFACE_LIBRARY)
# define PLUGININTERFACESHARED_EXPORT Q_DECL_EXPORT
#else
# define PLUGININTERFACESHARED_EXPORT Q_DECL_IMPORT
#endif
class PLUGININTERFACESHARED_EXPORT PluginInterface
{
public:
virtual QObject *createInstance
() = 0;
};
#if defined(PLUGININTERFACE_LIBRARY)
# define PLUGININTERFACESHARED_EXPORT Q_DECL_EXPORT
#else
# define PLUGININTERFACESHARED_EXPORT Q_DECL_IMPORT
#endif
class PLUGININTERFACESHARED_EXPORT PluginInterface
{
public:
virtual QObject *createInstance() = 0;
};
To copy to clipboard, switch view to plain text mode
This has to fail, obviously in the end, because there is nothing to export/compile/link from a header.
That's why I got the linker error.
So removing the following is the solution.
PLUGININTERFACESHARED_EXPORT
PLUGININTERFACESHARED_EXPORT
To copy to clipboard, switch view to plain text mode
Problem solved.
Bookmarks