[Interest] My experience porting to Qt5 (on OS X)
thiago.macieira at intel.com
Thu Sep 13 10:26:03 CEST 2012
On quinta-feira, 13 de setembro de 2012 10.19.34, Stephen Kelly wrote:
> > And if I would
> > forget to say QT += widgets in "model.pro", I'd simply get a linker error.
> Only if you attempt to use something from the header which requires linking.
Also note that, by default, linking on ELF platforms does not error out in
case of undefined symbols. Your library might link and you'll never notice the
error until you run with an application that doesn't link to QtWidgets or to
libraries that do.
If you want to catch this error, add to your .pro file:
QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF
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...
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the Interest