[Development] Use static qt libraries

Thiago Macieira thiago.macieira at intel.com
Tue Jul 24 12:13:27 CEST 2012


On terça-feira, 24 de julho de 2012 09.57.48, shane.kearns at accenture.com 
wrote:
> > > Thanks, are such undefined symbols normal ? And is there a way to fix
> > 
> > it ?
> > 
> > Missing only the _ZTI ones is highly irregular. The typeinfo objects
> > are always emitted together with the virtual table and other objects.
> > Since the virtual tables are not missing, the only explanation I can
> > give is the same one that Rohan had: you're mixing -fno-rtti with code
> > that requires the RTTI.
> 
> Could this also be due to mixing no-exception and exceptions enabled code?
> I know that enabling exceptions enables some vtable & rtti exports in a dll
> too.

It could, but not for *those* symbols. Exceptions require the typeinfo for the 
type being thrown (which is why cross-library exceptions sometimes fails with 
-fvisibility=hidden), but none of these types should be thrown:

QFocusHelper
QAbstractUndoItem
QStaticTextUserData
QItemEditorCreatorBase
QNetworkConfiguration

(some of those classes look like they came straight from classnamer.com)

To the OP: find out which .o requires those TI symbols.

Also, since I guess you're not using GCC, I can't rule out a compiler bug 
either.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120724/2b362fad/attachment.sig>


More information about the Development mailing list