Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62979

'unresolved external symbol' error for QtXmlPatterns builds using ICC with precompiled headers on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.10
    • Fix Version/s: None
    • Component/s: XML: QtXmlPatterns
    • Labels:
    • Environment:

      Description

      Hello everyone,

      Got errors for builds using ICC on Windows:

              cd xmlpatterns\ && ( if not exist Makefile C:\libQT-5.10-dev\build\qtbase\bin\qmake.exe -o Makefile C:\libQT-5.10-dev\build\qtxmlpatterns\src\xmlpatterns\xmlpatterns.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\nmake.exe" -f Makefile
      
      Microsoft (R) Program Maintenance Utility Version 14.11.25507.1
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\nmake.exe" -f Makefile.Debug
      
      Microsoft (R) Program Maintenance Utility Version 14.11.25507.1
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              echo 2 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ "..\\..\\lib\\Qt5XmlPatternsd.dll.embed.manifest">..\..\lib\Qt5XmlPatternsd.dll_manifest.rc
              if not exist ..\..\lib\Qt5XmlPatternsd.dll if exist ..\..\lib\Qt5XmlPatternsd.dll.embed.manifest del ..\..\lib\Qt5XmlPatternsd.dll.embed.manifest
              if exist ..\..\lib\Qt5XmlPatternsd.dll.embed.manifest copy /Y ..\..\lib\Qt5XmlPatternsd.dll.embed.manifest ..\..\lib\Qt5XmlPatternsd.dll_manifest.bak
              xilink /NOLOGO /BASE:0x61000000 /DEBUG /DLL /SUBSYSTEM:WINDOWS /VERSION:5.10 /MANIFEST /MANIFESTFILE:..\..\lib\Qt5XmlPatternsd.dll.embed.manifest /OUT:..\..\lib\Qt5XmlPatternsd.dll @C:\Users\test\AppData\Local\Temp\nm4805.tmp
         Creating library ..\..\lib\Qt5XmlPatternsd.lib and object ..\..\lib\Qt5XmlPatternsd.exp
      qoutputvalidator.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qbasictypesfactory.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qnamedschemacomponent.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qqnametest.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qnamepool.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdschematypesfactory.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdtypechecker.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdvalidatinginstancereader.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdxpathexpression.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdschemahelper.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdschemaparser.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdschemaparser_setup.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdschemaresolver.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdreference.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdschema.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdschemachecker.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdschemachecker_setup.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdattributereference.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdcomplextype.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdinstancereader.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdparticlechecker.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qquerytransformparser.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qparsercontext.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qdocumentprojector.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qnamespacesupport.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qsystempropertyfn.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxpath10corefunctions.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxpath20corefunctions.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxslt20corefunctions.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qfunctionfactorycollection.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qfunctionfactory.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qnodefns.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qqnamefns.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qconstructorfunctionsfactory.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qerrorfn.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qfunctionargument.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qfunctionavailablefn.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qtemplateparameterreference.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qunresolvedvariablereference.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qabstractfunctionfactory.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qaccessorfns.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qoptimizerblocks.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qqnameconstructor.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qtemplate.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qtemplateinvoker.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qexpressionfactory.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qexternalvariableloader.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qexternalvariablereference.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qnamespaceconstructor.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qcalltargetdescription.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qcastas.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qdocumentcontentvalidator.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qelementconstructor.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qqnamevalue.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qattributeconstructor.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qattributenamevalidator.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qcallsite.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxmlformatter.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxmlquery.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxmlserializer.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qatomicvalue.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qacceltree.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qacceltreeresourceloader.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qvariableloader.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qpullbridge.obj : error LNK2001: unresolved external symbol "public: __cdecl QXmlName::QXmlName(class QXmlName const &)" (??0QXmlName@@QEAA@AEBV0@@Z)
      qxsdschemaresolver.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qxsdschematypesfactory.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qxsdvalidatinginstancereader.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qnamedschemacomponent.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qxsdattributereference.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qxsdreference.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qxsdschema.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qxsdschemaparser.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qexpressionfactory.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qquerytransformparser.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qparsercontext.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qnamespacesupport.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qacceltreeresourceloader.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qvariableloader.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qxmlquery.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      qxmlserializer.obj : error LNK2001: unresolved external symbol "public: class QXmlName & __cdecl QXmlName::operator=(class QXmlName const &)" (??4QXmlName@@QEAAAEAV0@AEBV0@@Z)
      ..\..\lib\Qt5XmlPatternsd.dll : fatal error LNK1120: 2 unresolved externals
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\bin\intel64\xilink.EXE"' : return code '0x460'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.

      which relate to Change #192066.

       

      Reproduced for:
        - builds using ICC with -pch flag for Qt configuration,

      not reproduced for:
        - builds using ICC with no-pch flag for Qt configuration OR Change #192066 reverted,
        - builds using mingw-w64 and MSVC with -pch flag for Qt configuration,.

       

      This is the same issue, as QTBUG-62956 and QTCREATORBUG-19303.

       

      Alexander

       

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sav sav
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes