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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
