Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Duplicated symbol on plugin compilation [Solved]

Duplicated symbol on plugin compilation [Solved]

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 3.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fronald
    wrote on last edited by
    #1

    Hi guys,

    I have a interface and implementation of Qt plugin for my application. When i compile the plugin, i got errors:

    duplicate symbol _qt_plugin_query_verification_data in:
    obj/Support500b.o
    obj/moc_Support500b.o
    duplicate symbol _qt_plugin_instance in:
    obj/Support500b.o
    obj/moc_Support500b.o
    ld: 2 duplicate symbols for architecture x86_64

    Why the moc file has same symbol of my plugin file?

    Thank you!

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fronald
      wrote on last edited by
      #2

      Solved. Just remove Q_OBJECT macro of plugin implementation header.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fronald
        wrote on last edited by
        #3

        [Update] The real solution for this problem, is here: http://qt-project.org/forums/viewthread/19346/

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved