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:
#include <QtGlobal>//<Qt/qglobal.h>
#ifdef MYLIB_LIB
# define MYLIB_EXPORT Q_DECL_EXPORT
#else
# define MYLIB_EXPORT Q_DECL_IMPORT
#endif
#include <QtGlobal>//<Qt/qglobal.h>
#ifdef MYLIB_LIB
# define MYLIB_EXPORT Q_DECL_EXPORT
#else
# define MYLIB_EXPORT Q_DECL_IMPORT
#endif
To copy to clipboard, switch view to plain text mode
Bookmarks