Results 1 to 3 of 3

Thread: Plugin - DLL error

  1. #1
    Join Date
    May 2007
    Posts
    301
    Thanks
    46
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Plugin - DLL error

    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

  2. #2
    Join Date
    May 2007
    Posts
    301
    Thanks
    46
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Plugin - DLL error

    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

  3. #3
    Join Date
    Apr 2006
    Location
    Minsk, Belarus
    Posts
    33
    Thanks
    2
    Thanked 6 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Plugin - DLL error

    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)?

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  3. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  4. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  5. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.