Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.4.0-beta1
-
None
-
Windows Server 2012 R2 + VS2015 Update 3
-
8b6cd04d8c3b4ec0946a4817371e2d7abbafb14c
Description
I tried to build QTCreator (master branch, revision a45b0d2) with VS2015 Update 3 on Windows. It failed to build due to the error below:
D:\QTCreator\src\src\plugins\silversearcher\silversearcherplugin.cpp(48): error C2509: 'createTestObjects': member function not declared in 'SilverSearcher::Internal::SilverSearcherPlugin'
In silversearcherplugin.h file:
#ifdef WITH_TESTS
private:
QList<QObject *> createTestObjects() const override;
#endif
In silversearcherplugin.cpp file:
QList<QObject *> SilverSearcherPlugin::createTestObjects() const
{
return
}
We should change the code in silversearcherplugin.cpp file as below. Then QTCreator can be built successfully.
#ifdef WITH_TESTS
QList<QObject *> SilverSearcherPlugin::createTestObjects() const
{
return {new OutputParserTest}
;
}
#endif
Could you take a look at this? Thanks!