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

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.10.0-beta1
    • Qt Creator 4.9.1
    • Building Qt Creator
    • None
    • Visual studio 2017 15.7.2 + windows server 2016
    • Windows
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: