[Qt-interest] QLibrary cannot resolve symbol

Thiago Macieira thiago at kde.org
Wed Jul 13 23:38:25 CEST 2011


On Wednesday, 13 de July de 2011 23:15:02 Anatoly Burakov wrote:
> How is that static?
> 
> extern "C" MyInterface* instance()
> {
>     return new MySubclass();
> }
> 
> maybe this has something to do with how i build stuff?

Yes.

> Just in case, here's the CMake file:
> 
> ///////////////////////////////////////
> project(myplugin)
> 
> find_package(KDE4 REQUIRED)
> include(KDE4Defaults)
> include(MacroLibrary)
> 
> add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -fexceptions)

What do those expand to? Do any of them include -fvisibility=hidden? If so, 
use the macro to export the symbol.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110713/9b5adf06/attachment.bin 


More information about the Qt-interest-old mailing list