-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.1.0
-
None
-
Microsoft Visual Studio 10, Microsoft Windows Resource Compiler Version 6.1.7600.16385
-
e4851fedd429cfe00de061e81596856fdd22d2c8
I'm using QT_VERSION_STR inside a resource file (.rc), in order to have the Qt version number as part of the DLL file version information. (The resource file is compiled by the Microsoft Windows Resource Compiler, rc.exe.) So my resource file contains something like this:
BEGIN
VALUE "My Qt version", QT_VERSION_STR
END
My resource file also has #include <QtCore/QtGlobal>, in order to use QT_VERSION_STR. Unfortunately, after upgrading to Qt 5, #include <QtCore/QtGlobal> triggers the following error from the resource compiler:
C:/Qt/Qt5.1.0/5.1.0/msvc2010/include\QtCore/qprocessordetection.h(291): error RC2188: C:\Build\...\RCa02016(75) : fatal error RC1116: RC terminating after preprocessor errors
The resource compiler cannot swallow the indirect #include <QtCore/qprocessordetection.h> from "qglobal.h".
Would it be feasible to you to place the definitions of QT_VERSION_STR and QT_VERSION in a different header file, which is easier to swallow for a resource compiler? For example, <QtCore/QtVersion>?