如何编译sevenZip的Alone源代码?

时间:2019-04-17 06:03:21

标签: c++ visual-studio visual-c++ linker

当我尝试构建SevenZip的Alone源代码时,出现以下错误。

在我看来,链接器找不到错误日志中提到的功能的引用。如果我错了,请纠正我。我是否缺少任何依赖项或必要步骤?

我正在使用Visual Studio Professional 2015和Windows 10 Pro。

  here is the command line options from visual studio. 

 /Yu"StdAfx.h" /GS /analyze- /W4 /Gy- /Zc:wchar_t /I"..\..\..\" /Zi /Gm- 
 /Od /Fd".\Debug\" /Zc:inline /fp:precise /D "_DEBUG" /D "WIN32" /D "_CONSOLE" 
 /D "_7ZIP_LARGE_PAGES" /D "SUPPORT_DEVICE_FILE" /D "_VC80_UPGRADE=0x0600" 
 /D "_MBCS" /errorReport:prompt /WX- /Zc:forScope /RTC1 /Gz /Oy- /MDd 
 /Fa".\Debug\" /EHsc /nologo /Fo".\Debug\" /Fp".\Debug\Alone.pch" 

  here are the linker options.
  /OUT:"c:\UTIL\7za.exe" /MANIFEST /NXCOMPAT /PDB:".\Debug\Alone.pdb" 
  /DYNAMICBASE "odbc32.lib" "odbccp32.lib" "kernel32.lib" "user32.lib" 
  "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" 
  "ole32.lib" "oleaut32.lib" "uuid.lib" /MACHINE:X86 /SAFESEH /INCREMENTAL 
  /PGD:".\Debug\Alone.pgd" /SUBSYSTEM:CONSOLE 
  /MANIFESTUAC:"level='asInvoker' uiAccess='false'" 
  /ManifestFile:".\Debug\Alone.exe.intermediate.manifest" 
  /ERRORREPORT:PROMPT /NOLOGO /TLBID:1 


  1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_isError referenced in function "public: long __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::SetCoderProperties(unsigned long const *,struct tagPROPVARIANT const *,unsigned int)" (?SetCoderProperties@FastLzma2@CFastEncoder@NLzma2@NCompress@@QAEJPBKPBUtagPROPVARIANT@@I@Z)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_isTimedOut referenced in function "public: long __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::AddByteCount(unsigned int,struct ISequentialOutStream *,struct ICompressProgressInfo *)" (?AddByteCount@FastLzma2@CFastEncoder@NLzma2@NCompress@@QAEJIPAUISequentialOutStream@@PAUICompressProgressInfo@@@Z)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_freeCCtx referenced in function "public: __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::~FastLzma2(void)" (??1FastLzma2@CFastEncoder@NLzma2@NCompress@@QAE@XZ)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_createCStreamMt referenced in function "public: long __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::SetCoderProperties(unsigned long const *,struct tagPROPVARIANT const *,unsigned int)" (?SetCoderProperties@FastLzma2@CFastEncoder@NLzma2@NCompress@@QAEJPBKPBUtagPROPVARIANT@@I@Z)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_initCStream referenced in function "public: long __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::Begin(void)" (?Begin@FastLzma2@CFastEncoder@NLzma2@NCompress@@QAEJXZ)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_setCStreamTimeout referenced in function "public: long __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::SetCoderProperties(unsigned long const *,struct tagPROPVARIANT const *,unsigned int)" (?SetCoderProperties@FastLzma2@CFastEncoder@NLzma2@NCompress@@QAEJPBKPBUtagPROPVARIANT@@I@Z)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_getDictionaryBuffer referenced in function "public: long __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::Begin(void)" (?Begin@FastLzma2@CFastEncoder@NLzma2@NCompress@@QAEJXZ)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_updateDictionary referenced in function "public: long __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::AddByteCount(unsigned int,struct ISequentialOutStream *,struct ICompressProgressInfo *)" (?AddByteCount@FastLzma2@CFastEncoder@NLzma2@NCompress@@QAEJIPAUISequentialOutStream@@PAUICompressProgressInfo@@@Z)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_getNextCompressedBuffer referenced in function "private: long __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::WriteBuffers(struct ISequentialOutStream *)" (?WriteBuffers@FastLzma2@CFastEncoder@NLzma2@NCompress@@AAEJPAUISequentialOutStream@@@Z)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_getCStreamProgress referenced in function "private: bool __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::UpdateProgress(struct ICompressProgressInfo *)" (?UpdateProgress@FastLzma2@CFastEncoder@NLzma2@NCompress@@AAE_NPAUICompressProgressInfo@@@Z)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_waitCStream referenced in function "private: long __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::WaitAndReport(unsigned int &,struct ICompressProgressInfo *)" (?WaitAndReport@FastLzma2@CFastEncoder@NLzma2@NCompress@@AAEJAAIPAUICompressProgressInfo@@@Z)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_cancelCStream referenced in function "public: void __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::Cancel(void)" (?Cancel@FastLzma2@CFastEncoder@NLzma2@NCompress@@QAEXXZ)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_endStream referenced in function "public: long __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::End(struct ISequentialOutStream *,struct ICompressProgressInfo *)" (?End@FastLzma2@CFastEncoder@NLzma2@NCompress@@QAEJPAUISequentialOutStream@@PAUICompressProgressInfo@@@Z)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_CCtx_setParameter referenced in function "public: long __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::SetCoderProperties(unsigned long const *,struct tagPROPVARIANT const *,unsigned int)" (?SetCoderProperties@FastLzma2@CFastEncoder@NLzma2@NCompress@@QAEJPBKPBUtagPROPVARIANT@@I@Z)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_CCtx_getParameter referenced in function "public: long __thiscall NCompress::NLzma2::CFastEncoder::FastLzma2::SetCoderProperties(unsigned long const *,struct tagPROPVARIANT const *,unsigned int)" (?SetCoderProperties@FastLzma2@CFastEncoder@NLzma2@NCompress@@QAEJPBKPBUtagPROPVARIANT@@I@Z)
 1>Lzma2Encoder.obj : error LNK2019: unresolved external symbol _FL2_getErrorCode referenced in function "long __stdcall NCompress::NLzma2::TranslateError(unsigned int)" (?TranslateError@NLzma2@NCompress@@YGJI@Z)

0 个答案:

没有答案