Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-17879

QTCreator failed to build on Windows due to error C2509: 'createTestObjects': member function not declared in 'SilverSearcher::Internal::SilverSearcherPlugin'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.3.0-beta1
    • Qt Creator 4.4.0-beta1
    • Building Qt Creator
    • 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

      {new OutputParserTest};
      }

      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!

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            con Eike Ziller
            karenhuang Karen Huang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes