QT_LARGEFILE_SUPPORT macro redifinition issue with Qt4.8.5
I'm using the Qt libraries 4.8.5 for Windows (VS 2010, 235 MB) package. When I switch from Qt4.8.4 to Qt4.8.5 I get a lot of warnings of type QT_LARGEFILE_SUPPORT macro redifinition, more precisely one for each moc_xyz.cpp file. Any idea?
It seems that QT_LARGEFILE_SUPPORT is defined in qconfig.h now:
@// Compile time features
#define QT_LARGEFILE_SUPPORT 64
#if defined(QT_GRAPHICSSYSTEM_RASTER) && defined(QT_NO_GRAPHICSSYSTEM_RASTER)
I've removed QT_LARGEFILE_SUPPORT from the preprocessor settings of each of my generated moc files. Now, the warning disappears. I've also removed it from the ItemDefinitionGroups in the VS project file, so that the macro will not be set again for new moc files.
As the QT_LARGEFILE_SUPPORT preprocessor definition has been and will be automatically added to projects by the current version of Qt VS Addin (1.1.11), it was easier for me to change qconfig.h to
define QT_LARGEFILE_SUPPORT 64
I searched the whole qt folder for QT_LARGEFILE_SUPPORT, and it is always being checked with an #ifdef, it doesn't seem to matter whether it's 1 or 64.
WhiskeyBravo last edited by
Solution from FloGe worked great for me. Thanks for the tip.