Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-854

'undefined reference to' and 'unresolved external symbol' errors for QTIF builds on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 3.1.0
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Environment:

      Description

      Hello everyone,

      Got errors for builds using mingw-w64:

      mingw32-make[3]: Entering directory 'c:/QTIF-3.1.83-dev/build/tools/archivegen'
      g++ -Wl,-s -Wl,-subsystem,console -mthreads -o c:\QTIF-3.1.83-dev\GCC64RH\bin\archivegen.exe release/archive.o release/repositorygen.o  -Lc:\QTIF-3.1.83-dev\GCC64RH\lib -linstaller -luser32 -l7z -Lc:\libQT-5.10-dev\GCC64RH\lib c:\libQT-5.10-dev\GCC64RH\lib\libQt5UiTools.a c:\libQT-5.10-dev\GCC64RH\lib\libQt5Widgets.a c:\libQT-5.10-dev\GCC64RH\lib\libQt5Gui.a c:\libQT-5.10-dev\GCC64RH\lib\libQt5Qml.a c:\libQT-5.10-dev\GCC64RH\lib\libQt5Network.a c:\libQT-5.10-dev\GCC64RH\lib\libQt5Xml.a c:\libQT-5.10-dev\GCC64RH\lib\libQt5Core.a
      release/archive.o:archive.cpp:(.rdata$.refptr.IID_IUnknown[.refptr.IID_IUnknown]+0x0): undefined reference to `IID_IUnknown'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(Update.o):Update.cpp:(.rdata$.refptr.IID_IOutArchive[.refptr.IID_IOutArchive]+0x0): undefined reference to `IID_IOutArchive'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(Update.o):Update.cpp:(.rdata$.refptr.IID_IOutStream[.refptr.IID_IOutStream]+0x0): undefined reference to `IID_IOutStream'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(SetProperties.o):SetProperties.cpp:(.rdata$.refptr.IID_ISetProperties[.refptr.IID_ISetProperties]+0x0): undefined reference to `IID_ISetProperties'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(OpenArchive.o):OpenArchive.cpp:(.rdata$.refptr.IID_IArchiveOpenSetSubArchiveName[.refptr.IID_IArchiveOpenSetSubArchiveName]+0x0): undefined reference to `IID_IArchiveOpenSetSubArchiveName'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(OpenArchive.o):OpenArchive.cpp:(.rdata$.refptr.IID_IInStream[.refptr.IID_IInStream]+0x0): undefined reference to `IID_IInStream'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(OpenArchive.o):OpenArchive.cpp:(.rdata$.refptr.IID_IArchiveGetRootProps[.refptr.IID_IArchiveGetRootProps]+0x0): undefined reference to `IID_IArchiveGetRootProps'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(OpenArchive.o):OpenArchive.cpp:(.rdata$.refptr.IID_IArchiveGetRawProps[.refptr.IID_IArchiveGetRawProps]+0x0): undefined reference to `IID_IArchiveGetRawProps'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(OpenArchive.o):OpenArchive.cpp:(.rdata$.refptr.IID_IArchiveOpenSeq[.refptr.IID_IArchiveOpenSeq]+0x0): undefined reference to `IID_IArchiveOpenSeq'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(OpenArchive.o):OpenArchive.cpp:(.rdata$.refptr.IID_IArchiveKeepModeForNextOpen[.refptr.IID_IArchiveKeepModeForNextOpen]+0x0): undefined reference to `IID_IArchiveKeepModeForNextOpen'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(OpenArchive.o):OpenArchive.cpp:(.rdata$.refptr.IID_IArchiveAllowTail[.refptr.IID_IArchiveAllowTail]+0x0): undefined reference to `IID_IArchiveAllowTail'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(OpenArchive.o):OpenArchive.cpp:(.rdata$.refptr.IID_IInArchiveGetStream[.refptr.IID_IInArchiveGetStream]+0x0): undefined reference to `IID_IInArchiveGetStream'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(OpenArchive.o):OpenArchive.cpp:(.rdata$.refptr.IID_IInArchive[.refptr.IID_IInArchive]+0x0): undefined reference to `IID_IInArchive'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(OpenArchive.o):OpenArchive.cpp:(.rdata$.refptr.IID_ICompressProgressInfo[.refptr.IID_ICompressProgressInfo]+0x0): undefined reference to `IID_ICompressProgressInfo'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(OpenArchive.o):OpenArchive.cpp:(.rdata$.refptr.IID_IArchiveExtractCallback[.refptr.IID_IArchiveExtractCallback]+0x0): undefined reference to `IID_IArchiveExtractCallback'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(OpenArchive.o):OpenArchive.cpp:(.rdata$.refptr.IID_IArchiveOpenCallback[.refptr.IID_IArchiveOpenCallback]+0x0): undefined reference to `IID_IArchiveOpenCallback'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(ArchiveExtractCallback.o):ArchiveExtractCallback.cpp:(.rdata$.refptr.IID_IFolderExtractToStreamCallback[.refptr.IID_IFolderExtractToStreamCallback]+0x0): undefined reference to `IID_IFolderExtractToStreamCallback'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(ArchiveExtractCallback.o):ArchiveExtractCallback.cpp:(.rdata$.refptr.IID_ICryptoGetTextPassword[.refptr.IID_ICryptoGetTextPassword]+0x0): undefined reference to `IID_ICryptoGetTextPassword'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(ArchiveExtractCallback.o):ArchiveExtractCallback.cpp:(.rdata$.refptr.IID_IGetProp[.refptr.IID_IGetProp]+0x0): undefined reference to `IID_IGetProp'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(ArchiveOpenCallback.o):ArchiveOpenCallback.cpp:(.rdata$.refptr.IID_IArchiveOpenVolumeCallback[.refptr.IID_IArchiveOpenVolumeCallback]+0x0): undefined reference to `IID_IArchiveOpenVolumeCallback'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(ArchiveOpenCallback.o):ArchiveOpenCallback.cpp:(.rdata$.refptr.IID_IStreamGetProps2[.refptr.IID_IStreamGetProps2]+0x0): undefined reference to `IID_IStreamGetProps2'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(ArchiveOpenCallback.o):ArchiveOpenCallback.cpp:(.rdata$.refptr.IID_IStreamGetProps[.refptr.IID_IStreamGetProps]+0x0): undefined reference to `IID_IStreamGetProps'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(ArchiveOpenCallback.o):ArchiveOpenCallback.cpp:(.rdata$.refptr.IID_IStreamGetSize[.refptr.IID_IStreamGetSize]+0x0): undefined reference to `IID_IStreamGetSize'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(CopyCoder.o):CopyCoder.cpp:(.rdata$.refptr.IID_ICompressGetInStreamProcessedSize[.refptr.IID_ICompressGetInStreamProcessedSize]+0x0): undefined reference to `IID_ICompressGetInStreamProcessedSize'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(LimitedStreams.o):LimitedStreams.cpp:(.rdata$.refptr.IID_ISequentialInStream[.refptr.IID_ISequentialInStream]+0x0): undefined reference to `IID_ISequentialInStream'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(LimitedStreams.o):LimitedStreams.cpp:(.rdata$.refptr.IID_ISequentialOutStream[.refptr.IID_ISequentialOutStream]+0x0): undefined reference to `IID_ISequentialOutStream'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(PropVariant.o):PropVariant.cpp:(.text+0xc): undefined reference to `__imp_SysAllocStringLen'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(PropVariant.o):PropVariant.cpp:(.text+0x7d): undefined reference to `__imp_SysAllocStringLen'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(PropVariant.o):PropVariant.cpp:(.text+0x122): undefined reference to `__imp_VariantClear'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(PropVariant.o):PropVariant.cpp:(.text+0x18d): undefined reference to `__imp_SysAllocString'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(PropVariant.o):PropVariant.cpp:(.text+0x219): undefined reference to `__imp_SysAllocStringLen'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(PropVariant.o):PropVariant.cpp:(.text+0x2e8): undefined reference to `__imp_SysAllocStringLen'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(PropVariant.o):PropVariant.cpp:(.text+0x51e): undefined reference to `__imp_VariantClear'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(PropVariant.o):PropVariant.cpp:(.text+0x546): undefined reference to `__imp_VariantCopy'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(DLL.o):DLL.cpp:(.rdata$.refptr.g_hInstance[.refptr.g_hInstance]+0x0): undefined reference to `g_hInstance'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(UpdateCallback.o):UpdateCallback.cpp:(.rdata$.refptr.IID_ICryptoGetTextPassword2[.refptr.IID_ICryptoGetTextPassword2]+0x0): undefined reference to `IID_ICryptoGetTextPassword2'
      c:\QTIF-3.1.83-dev\GCC64RH\lib/lib7z.a(UpdateCallback.o):UpdateCallback.cpp:(.rdata$.refptr.IID_IArchiveUpdateCallback2[.refptr.IID_IArchiveUpdateCallback2]+0x0): undefined reference to `IID_IArchiveUpdateCallback2'
      collect2.exe: error: ld returned 1 exit status
      mingw32-make[3]: *** [Makefile.Release:66: c:\QTIF-3.1.83-dev\GCC64RH\bin\archivegen.exe] Error 1
      mingw32-make[3]: Leaving directory 'c:/QTIF-3.1.83-dev/build/tools/archivegen'
      mingw32-make[2]: *** [Makefile:36: release] Error 2
      mingw32-make[2]: Leaving directory 'c:/QTIF-3.1.83-dev/build/tools/archivegen'
      mingw32-make[1]: *** [Makefile:45: sub-archivegen-make_first] Error 2
      mingw32-make[1]: Leaving directory 'c:/QTIF-3.1.83-dev/build/tools'
      mingw32-make: *** [Makefile:67: sub-tools-make_first] Error 2

      and ICC:

              cd archivegen\ && ( if not exist Makefile c:\libQT-5.10-dev\ICC64RH\bin\qmake.exe -o Makefile c:\QTIF-3.1.83-dev\build\tools\archivegen\archivegen.pro "IFW_BUILD_TREE=c:\QTIF-3.1.83-dev\build\..\ICC64RH" ) && "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.Release
      
      Microsoft (R) Program Maintenance Utility Version 14.11.25507.1
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              echo 1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ "c:\\QTIF-3.1.83-dev\\ICC64RH\\bin\\archivegen.exe.embed.manifest">c:\QTIF-3.1.83-dev\ICC64RH\bin\archivegen.exe_manifest.rc
              if not exist c:\QTIF-3.1.83-dev\ICC64RH\bin\archivegen.exe if exist c:\QTIF-3.1.83-dev\ICC64RH\bin\archivegen.exe.embed.manifest del c:\QTIF-3.1.83-dev\ICC64RH\bin\archivegen.exe.embed.manifest
              if exist c:\QTIF-3.1.83-dev\ICC64RH\bin\archivegen.exe.embed.manifest copy /Y c:\QTIF-3.1.83-dev\ICC64RH\bin\archivegen.exe.embed.manifest c:\QTIF-3.1.83-dev\ICC64RH\bin\archivegen.exe_manifest.bak
              xilink /NOLOGO /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST /MANIFESTFILE:c:\QTIF-3.1.83-dev\ICC64RH\bin\archivegen.exe.embed.manifest /OUT:c:\QTIF-3.1.83-dev\ICC64RH\bin\archivegen.exe @C:\Users\test\AppData\Local\Temp\nmA455.tmp
      7z.lib(ArchiveOpenCallback.obj) : error LNK2001: unresolved external symbol IID_IStreamGetProps2
      7z.lib(Update.obj) : error LNK2001: unresolved external symbol IID_IStreamGetProps2
      7z.lib(OpenArchive.obj) : error LNK2001: unresolved external symbol IID_IStreamGetProps2
      7z.lib(FileStreams.obj) : error LNK2001: unresolved external symbol IID_IStreamGetProps2
      7z.lib(UpdateCallback.obj) : error LNK2001: unresolved external symbol IID_IStreamGetProps2
      7z.lib(ArchiveOpenCallback.obj) : error LNK2001: unresolved external symbol IID_IStreamGetProps
      7z.lib(Update.obj) : error LNK2001: unresolved external symbol IID_IStreamGetProps
      7z.lib(OpenArchive.obj) : error LNK2001: unresolved external symbol IID_IStreamGetProps
      7z.lib(FileStreams.obj) : error LNK2001: unresolved external symbol IID_IStreamGetProps
      7z.lib(UpdateCallback.obj) : error LNK2001: unresolved external symbol IID_IStreamGetProps
      7z.lib(ArchiveOpenCallback.obj) : error LNK2001: unresolved external symbol IID_IStreamGetSize
      7z.lib(Update.obj) : error LNK2001: unresolved external symbol IID_IStreamGetSize
      7z.lib(OpenArchive.obj) : error LNK2001: unresolved external symbol IID_IStreamGetSize
      7z.lib(FileStreams.obj) : error LNK2001: unresolved external symbol IID_IStreamGetSize
      7z.lib(UpdateCallback.obj) : error LNK2001: unresolved external symbol IID_IStreamGetSize
      7z.lib(LimitedStreams.obj) : error LNK2001: unresolved external symbol IID_IInStream
      7z.lib(ArchiveOpenCallback.obj) : error LNK2001: unresolved external symbol IID_IInStream
      7z.lib(StreamObjects.obj) : error LNK2001: unresolved external symbol IID_IInStream
      7z.lib(Update.obj) : error LNK2001: unresolved external symbol IID_IInStream
      7z.lib(OpenArchive.obj) : error LNK2001: unresolved external symbol IID_IInStream
      7z.lib(FileStreams.obj) : error LNK2001: unresolved external symbol IID_IInStream
      7z.lib(UpdateCallback.obj) : error LNK2001: unresolved external symbol IID_IInStream
      7z.lib(Update.obj) : error LNK2019: unresolved external symbol IID_IOutStream referenced in function "public: virtual long __cdecl COutFileStream::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@COutFileStream@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(UpdateCallback.obj) : error LNK2001: unresolved external symbol IID_IOutStream
      7z.lib(ArchiveExtractCallback.obj) : error LNK2001: unresolved external symbol IID_IOutStream
      7z.lib(Update.obj) : error LNK2019: unresolved external symbol IID_ISequentialOutStream referenced in function "public: virtual long __cdecl CTailOutStream::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CTailOutStream@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(OpenArchive.obj) : error LNK2001: unresolved external symbol IID_ISequentialOutStream
      7z.lib(Update.obj) : error LNK2019: unresolved external symbol IID_IOutArchive referenced in function "long __cdecl Compress(struct CUpdateOptions const &,class CCodecs *,struct NUpdateArchive::CActionSet const &,class CArc const *,struct CArchivePath &,class CObjectVector<struct CArcItem> const &,unsigned char *,class CDirItems const &,struct CDirItem const *,class CTempFiles &,struct CUpdateErrorInfo &,struct IUpdateCallbackUI *)" (?Compress@@YAJAEBUCUpdateOptions@@PEAVCCodecs@@AEBUCActionSet@NUpdateArchive@@PEBVCArc@@AEAUCArchivePath@@AEBV?$CObjectVector@UCArcItem@@@@PEAEAEBVCDirItems@@PEBUCDirItem@@AEAVCTempFiles@@AEAUCUpdateErrorInfo@@PEAUIUpdateCallbackUI@@@Z)
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_IArchiveOpenSetSubArchiveName referenced in function "public: virtual long __cdecl COpenCallbackImp::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@COpenCallbackImp@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_IArchiveOpenVolumeCallback referenced in function "public: virtual long __cdecl COpenCallbackImp::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@COpenCallbackImp@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_ICompressProgressInfo referenced in function "public: virtual long __cdecl CExtractCallback_To_OpenCallback::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CExtractCallback_To_OpenCallback@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(UpdateCallback.obj) : error LNK2001: unresolved external symbol IID_ICompressProgressInfo
      7z.lib(ProgressUtils.obj) : error LNK2001: unresolved external symbol IID_ICompressProgressInfo
      7z.lib(ArchiveExtractCallback.obj) : error LNK2001: unresolved external symbol IID_ICompressProgressInfo
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_IArchiveExtractCallback referenced in function "public: virtual long __cdecl CExtractCallback_To_OpenCallback::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CExtractCallback_To_OpenCallback@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_ICompressGetInStreamProcessedSize referenced in function "public: virtual long __cdecl NCompress::CCopyCoder::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CCopyCoder@NCompress@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(CopyCoder.obj) : error LNK2001: unresolved external symbol IID_ICompressGetInStreamProcessedSize
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_IInArchiveGetStream referenced in function "public: virtual long __cdecl NArchive::NParser::CHandler::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CHandler@NParser@NArchive@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_IInArchive referenced in function "public: virtual long __cdecl NArchive::NParser::CHandler::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CHandler@NParser@NArchive@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_ISequentialInStream referenced in function "public: virtual long __cdecl CLimitedSequentialInStream::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CLimitedSequentialInStream@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(UpdateCallback.obj) : error LNK2001: unresolved external symbol IID_ISequentialInStream
      7z.lib(LimitedStreams.obj) : error LNK2001: unresolved external symbol IID_ISequentialInStream
      7z.lib(StreamObjects.obj) : error LNK2001: unresolved external symbol IID_ISequentialInStream
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_IArchiveKeepModeForNextOpen referenced in function "public: void __cdecl CArchiveLink::KeepModeForNextOpen(void)" (?KeepModeForNextOpen@CArchiveLink@@QEAAXXZ)
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_IArchiveGetRootProps referenced in function "public: long __cdecl CArc::OpenStream(struct COpenOptions const &)" (?OpenStream@CArc@@QEAAJAEBUCOpenOptions@@@Z)
      7z.lib(UpdateCallback.obj) : error LNK2001: unresolved external symbol IID_IArchiveGetRootProps
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_IArchiveGetRawProps referenced in function "public: long __cdecl CArc::OpenStream(struct COpenOptions const &)" (?OpenStream@CArc@@QEAAJAEBUCOpenOptions@@@Z)
      7z.lib(UpdateCallback.obj) : error LNK2001: unresolved external symbol IID_IArchiveGetRawProps
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_IArchiveOpenSeq referenced in function "private: long __cdecl CArc::OpenStream2(struct COpenOptions const &)" (?OpenStream2@CArc@@AEAAJAEBUCOpenOptions@@@Z)
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_IArchiveAllowTail referenced in function "private: long __cdecl CArc::PrepareToOpen(struct COpenOptions const &,unsigned int,class CMyComPtr<struct IInArchive> &)" (?PrepareToOpen@CArc@@AEAAJAEBUCOpenOptions@@IAEAV?$CMyComPtr@UIInArchive@@@@@Z)
      7z.lib(OpenArchive.obj) : error LNK2019: unresolved external symbol IID_IArchiveOpenCallback referenced in function "public: virtual long __cdecl CArchiveOpenCallback_Offset::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CArchiveOpenCallback_Offset@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(EnumDirItems.obj) : error LNK2019: unresolved external symbol __imp_GetFileSecurityW referenced in function "public: void __cdecl CDirItems::AddSecurityItem(class UString const &,int &)" (?AddSecurityItem@CDirItems@@QEAAXAEBVUString@@AEAH@Z)
      7z.lib(DLL.obj) : error LNK2019: unresolved external symbol "struct HINSTANCE__ * g_hInstance" (?g_hInstance@@3PEAUHINSTANCE__@@EA) referenced in function "bool __cdecl NWindows::NDLL::MyGetModuleFileName(class UString &)" (?MyGetModuleFileName@NDLL@NWindows@@YA_NAEAVUString@@@Z)
      7z.lib(PropVariant.obj) : error LNK2019: unresolved external symbol __imp_VariantCopy referenced in function "public: __cdecl NWindows::NCOM::CPropVariant::CPropVariant(struct tagPROPVARIANT const &)" (??0CPropVariant@NCOM@NWindows@@QEAA@AEBUtagPROPVARIANT@@@Z)
      7z.lib(PropVariant.obj) : error LNK2019: unresolved external symbol __imp_VariantClear referenced in function "public: __cdecl NWindows::NCOM::CPropVariant::CPropVariant(struct tagPROPVARIANT const &)" (??0CPropVariant@NCOM@NWindows@@QEAA@AEBUtagPROPVARIANT@@@Z)
      7z.lib(PropVariant.obj) : error LNK2019: unresolved external symbol __imp_SysAllocString referenced in function "public: __cdecl NWindows::NCOM::CPropVariant::CPropVariant(wchar_t *)" (??0CPropVariant@NCOM@NWindows@@QEAA@PEA_W@Z)
      7z.lib(PropVariant.obj) : error LNK2019: unresolved external symbol __imp_SysAllocStringLen referenced in function "public: class NWindows::NCOM::CPropVariant & __cdecl NWindows::NCOM::CPropVariant::operator=(char const *)" (??4CPropVariant@NCOM@NWindows@@QEAAAEAV012@PEBD@Z)
      7z.lib(UpdateCallback.obj) : error LNK2019: unresolved external symbol IID_ICryptoGetTextPassword referenced in function "public: virtual long __cdecl CArchiveUpdateCallback::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CArchiveUpdateCallback@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(ArchiveExtractCallback.obj) : error LNK2001: unresolved external symbol IID_ICryptoGetTextPassword
      7z.lib(UpdateCallback.obj) : error LNK2019: unresolved external symbol IID_ICryptoGetTextPassword2 referenced in function "public: virtual long __cdecl CArchiveUpdateCallback::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CArchiveUpdateCallback@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(UpdateCallback.obj) : error LNK2019: unresolved external symbol IID_IArchiveUpdateCallback2 referenced in function "public: virtual long __cdecl CArchiveUpdateCallback::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CArchiveUpdateCallback@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(SetProperties.obj) : error LNK2019: unresolved external symbol IID_ISetProperties referenced in function "long __cdecl SetProperties(struct IUnknown *,class CObjectVector<struct CProperty> const &)" (?SetProperties@@YAJPEAUIUnknown@@AEBV?$CObjectVector@UCProperty@@@@@Z)
      7z.lib(ArchiveExtractCallback.obj) : error LNK2019: unresolved external symbol IID_IGetProp referenced in function "public: virtual long __cdecl CGetProp::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CGetProp@@UEAAJAEBU_GUID@@PEAPEAX@Z)
      7z.lib(ArchiveExtractCallback.obj) : error LNK2019: unresolved external symbol __imp_SetFileSecurityW referenced in function "public: virtual long __cdecl CArchiveExtractCallback::SetOperationResult(int)" (?SetOperationResult@CArchiveExtractCallback@@UEAAJH@Z)
      7z.lib(ArchiveExtractCallback.obj) : error LNK2019: unresolved external symbol __imp_AdjustTokenPrivileges referenced in function "public: __cdecl CArchiveExtractCallback::CArchiveExtractCallback(void)" (??0CArchiveExtractCallback@@QEAA@XZ)
      7z.lib(ArchiveExtractCallback.obj) : error LNK2019: unresolved external symbol __imp_LookupPrivilegeValueW referenced in function "public: __cdecl CArchiveExtractCallback::CArchiveExtractCallback(void)" (??0CArchiveExtractCallback@@QEAA@XZ)
      7z.lib(ArchiveExtractCallback.obj) : error LNK2019: unresolved external symbol __imp_OpenProcessToken referenced in function "public: __cdecl CArchiveExtractCallback::CArchiveExtractCallback(void)" (??0CArchiveExtractCallback@@QEAA@XZ)
      7z.lib(ArchiveExtractCallback.obj) : error LNK2019: unresolved external symbol IID_IFolderExtractToStreamCallback referenced in function "public: void __cdecl CArchiveExtractCallback::Init(struct CExtractNtOptions const &,class NWildcard::CCensorNode const *,class CArc const *,struct IFolderArchiveExtractCallback *,bool,bool,class UString const &,class CObjectVector<class UString> const &,unsigned __int64)" (?Init@CArchiveExtractCallback@@QEAAXAEBUCExtractNtOptions@@PEBVCCensorNode@NWildcard@@PEBVCArc@@PEAUIFolderArchiveExtractCallback@@_N4AEBVUString@@AEBV?$CObjectVector@VUString@@@@_K@Z)
      c:\QTIF-3.1.83-dev\ICC64RH\bin\archivegen.exe : fatal error LNK1120: 37 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 #113917.

      Reproduced for:
        - builds using mingw-w64 with <Debug|Release> Shared configuration and ICC with Release Shared configuration,

      not reproduced for:
        - builds using mingw-w64 with <Debug|Release> Shared configuration and ICC with Release Shared configuration with reverted Change #113917, related to file tools/archivegen/archive.cpp,
        - builds using mingw-w64 with <Debug|Release> Static configuration and ICC with Debug Shared and <Debug|Release> Static configuration,
        - builds using MSVC.

       

      CC: Karsten Heimrich as Owner of Change #113917.

      Best,

      Alexander

       

       

        Attachments

        For Gerrit Dashboard: QTIFW-854
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            installerteam Installer Team
            Reporter:
            sav sav
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes