Georg Baum <[EMAIL PROTECTED]> writes: > > | > Abdelrazak Younes <[EMAIL PROTECTED]> writes: > > | > > > | > | -Id:/program/Qt/4.1.0/include/Qt > > | > | -Id:/program/Qt/4.1.0/include/QtGui > > | > | -Id:/program/Qt/4.1.0/include/Qt3Support > > | > > > | > Are these really needed? Or would be nice to use <Qt/...> <QtGui/...> > > | > <Qt3Support/...> in the include statements? > > | > > | I asked myself the same question yesterday. > > > > And the answer was? > > It was: "Do whatever trolltech suggests unless there are compelling reasons > to do it differently". > > > | > Or are these included paths given by external entities? > > | > > | Trolltech writes that one should use the class names: > > | http://doc.trolltech.com/4.1/qt4-intro.html#include-syntax > > > > Does that really work when you are not using their buildsystem? > > Obviously it requires to add all the subdirectories to -I. I did not try, > but I guess that qmake just does that. > In fact, it looks like Qt contains everything, so that the others are not > needed. On the other hand that seems to be missing on Abdels installation.
Adding all the extra "-IQtGui -IQt3Support" statements and then having code "#include <QApplication>" works perfectly well with all of linux/autotools/configure/make, MinGW/MSYS/autotools/configure/make MSVS2003 So, I'd second Georg's "do it the Trolltech way". Regards, Angus