What file causes the message to appear?
a file which includes the following stuff:
#include "NavigatorProject.h" // header of the current class
#include <QFileDialog>
#include <QFileInfo>
#include <QList>
#include <QDataStream>
#include <QMessageBox>
#include <QInputDialog>
// many, many classes imported from my own libs
...
...
...
the warning comes when the file is compiled which includes the shown headers.
regards,
jh
Does it need to include all of them for the warning to appear or only some of them or maybe just one (which one?)?
hard to say,
could it be that you should include <QtGui/QColor> instead of <QColor> etc ?
regards,
jh
I think this is a Qt bug, in how the auto file generation works for libs, under windows, I don't know if only with VS2008.
If your project is auto generated lib with VS2008, then the export/import definition file <projectname>_global.h is generated and it calls "Qt/qglobal.h" - which caused the warning.
Change the file as follows, and the warning will go away:
Qt Code:
#include <QtGlobal>//<Qt/qglobal.h> #ifdef MYLIB_LIB # define MYLIB_EXPORT Q_DECL_EXPORT #else # define MYLIB_EXPORT Q_DECL_IMPORT #endifTo copy to clipboard, switch view to plain text mode
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks