Results 1 to 2 of 2

Thread: Writing a plugin: Can't access symbols from the application

  1. #1
    Join Date
    Feb 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Writing a plugin: Can't access symbols from the application

    Hi,

    I have an application that loads a plugin using QPluginLoader. That just works fine.
    Then I made the plugin to be loaded, that also works fine.
    But I have to access objects from the application inside the plugin. Once I try to use symbols from the application inside the plugin, I'll get "undefined reference to `symbolname_here'". That should be fine when compiling applications, as all symbols should be resolved when linking. But I want a shared library which should be able to ignore this.

    The plugin's .pro settings are:
    TEMPLATE=lib
    CONFIG+=plugin release

    Is there anything I can do to solve this?
    Thanks alot.

  2. #2
    Join Date
    Feb 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Writing a plugin: Can't access symbols from the application

    For some reason, linking under Linux just works fine.
    I just get these "undefined reference" errors when linking with MinGW on Windows (Qt 4.6.2 / GCC 4.4.0).

Similar Threads

  1. Replies: 7
    Last Post: 11th April 2013, 10:55
  2. Writing a Qt console application
    By sashoalm in forum Newbie
    Replies: 6
    Last Post: 7th February 2011, 17:42
  3. How to access the version of a plugin ...
    By Mike in forum Qt Programming
    Replies: 0
    Last Post: 8th June 2009, 08:41
  4. Help needed for writing a keypad plugin
    By Benjamin in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 22nd February 2009, 09:46
  5. What about a plugin application?
    By Raccoon29 in forum Newbie
    Replies: 4
    Last Post: 16th March 2008, 16:36

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.