On Monday, 26 de September de 2011 17:48:27 Oswald Buddenhagen wrote: > On Sat, Sep 24, 2011 at 05:01:15PM +0200, ext Thiago Macieira wrote: > > On Saturday, 24 de September de 2011 14:49:50 Peter Kuemmel wrote: > > > For instance qobject.h: > > > > > > #ifndef QOBJECT_H > > > #define QOBJECT_H > > > > > > #ifndef QT_NO_QOBJECT > > > > > > #include <QtCore/qobjectdefs.h> > > > #include <QtCore/qstring.h> > > > #include <QtCore/qbytearray.h> > > > > > > // generated by moc into the build directory > > > #include <qobject_moc.h> > > > > This means that qobject_moc.h depends on qobject.h and qobject.h depends > > on > > qobject_moc.h. > > this is actually wrong. there is no dependency of qobject.h on > qobject_moc.h. the *objects* which include qobject.h would also depend > on qobject_moc.h.
Not if you put the #include like it was in the above example.
To break the dependency, you need to either have a third header that includes
the original and the generated, or the user needs to remember to include the
generated one.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Qt5-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback
