PDA

View Full Version : Plugin - DLL error



steg90
9th June 2008, 08:30
Hi,

I guess this has been seen a number of times, I'm new to doing plugins in Qt and having wrote one ( Win32 ) and tried to use.

I wrote the plugin in Visual Studio 2005, copied the release build DLL into the plugin / designer directory, created a test project to use it ( it could be seen in visual studio ), added the header file and the error I get is :

DAGraph::staticMetaObject' : 'definition of dllimport static data member not allowed'

Am I missing some define or something?

Regards,
Steve

steg90
9th June 2008, 10:42
Ok, I got round this problem and then got lots of link errors which was easy to fix, just link in my lib file for the plugin.

Now the problem is, everytime I have my plugin on a form, the application just exits? It can't create the object?

Anyone any ideas?

Thanks,
Steve

Conel
12th June 2008, 10:57
Could you please provide the code which you wrote: plugin interface (header), plugin implementation (header) and describe how you load plugin in your main application (via QPluginLoader::instance() or by static linking)?