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

QTCreator failed to build due to error LNK2001 with MSVC on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.9.1
    • Fix Version/s: Qt Creator 4.10.0-beta1
    • Component/s: Building Qt Creator
    • Labels:
      None
    • Environment:
      Visual studio 2017 15.7.2 + windows server 2016
    • Platform/s:
      Windows
    • Commits:
      677a4692fa8abb4958595460a02b7a5a570236c2

      Description

      I tried to build QTCreator (master branch revision 1ecfb2d) with an upcoming VS2017 on Winodws.  It failed to build due to error LNK2001: unresolved external symbol "public: virtual int __thiscall Utils::AbstractMacroExpander::findMacro(class QString const &,int *,class QString *)" . We found that it can be first reproduced on master branch revision 2c88b5b. Could you please look at this issue? Thanks a lot!

      Repro step:

      1. git clone git://code.qt.io/qt-creator/qt-creator.git D:\QTCreator\src
      2. Open a VS 2017 x86 command prompt and browse to D:\QTCreator\src
      3. qmake -r qtcreator.pro
      4. jom

       

      Actual result:

      qtcprocess.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall Utils::AbstractMacroExpander::findMacro(class QString const &,int *,class QString *)" (?findMacro@AbstractMacroExpander@Utils@@UAEHABVQString@@PAHPAV3@@Z)
      ..\..\..\bin\sdktool.exe : fatal error LNK1120: 1 unresolved externals
      jom: D:\QTCreator\src\src\tools\sdktool\Makefile.Release [..\..\..\bin\sdktool.exe] Error 1120
      jom: D:\QTCreator\src\src\tools\sdktool\Makefile [release] Error 2
      jom: D:\QTCreator\src\src\tools\Makefile [sub-sdktool-make_first] Error 2
      jom: D:\QTCreator\src\src\Makefile [sub-tools-make_first-ordered] Error 2
      jom: D:\QTCreator\src\Makefile [sub-src-make_first-ordered] Error 2

        Attachments

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

          Activity

            People

            • Assignee:
              cstenger Christian Stenger
              Reporter:
              lingao Gao Lin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes