Duplicated symbol on plugin compilation [Solved]
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:
duplicate symbol _qt_plugin_instance in:
ld: 2 duplicate symbols for architecture x86_64
Why the moc file has same symbol of my plugin file?
Solved. Just remove Q_OBJECT macro of plugin implementation header.
[Update] The real solution for this problem, is here: http://qt-project.org/forums/viewthread/19346/