Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
Qt Creator 4.4.0-beta1
-
None
-
Windows Server 2012 R2 + Visual Studio 2015 Update 3
-
a86c28f4d595f46fa65b8d0b8916fe0501ef74a7
Description
I tried to build QTCreator (master branch latest revision d75ff0a) with VS2015 Update 3 on Winodws. It failed to build due to fatal error C1017: invalid integer constant expression. This error should be caused by master branch revision http://code.qt.io/cgit/qt-creator/qt-creator.git/commit/src/plugins/ios/iostoolhandler.cpp?id=f9350a5dbd67507b99517a62ccc19939e69dcf8c. Could you please take a look at this? Thanks in advance!
Reproduce steps:
- git clone [git://code.qt.io/qt-creator/qt-creator.git] D:\QTCreator\src
- Open a VS 2015 x86 command prompt and browse to D:\QTCreator\src
- qmake -r qtcreator.pro
- jom
Actual result:
iostoolhandler.cpp(896): fatal error C1017: invalid integer constant expression
jom: D:\QTCreator\src\src\plugins\ios\Makefile [release] Error 2
Some investigations on my side:
This issue is reproted from file D:\QTCreator\src\src\plugins\ios\iostoolhandler.cpp. The releated code is as below. There is syntax error for statement "#elif".
bool IosSimulatorToolHandlerPrivate::isRunning() const
{
#ifdef Q_OS_UNIX
return m_pid > 0 && (kill(m_pid, 0) == 0);
#elif
return false;
#endif
}