我希望使用Visual Studio 2017编译(7zip源代码的)z1900-src \ CPP \ 7zip \ Bundles \ Format7zF项目,但是我遇到无法解决的链接错误。
1> LINK : fatal error LNK1104: cannot open file '.\Debug\\.obj'
1> The command exited with code 1104.
1> Output Property: LinkSkippedExecution=False
1> Done executing task "Link" -- FAILED.
1> Done building target "Link" in project "Format7z.vcxproj" -- FAILED.
输出包括以下内容:
C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Professional \ MSBuild \ 15.0 \ Bin \ Tracker.exe / a / d “ C:\ Program Files(x86)\ MSBuild \ 15.0 \ FileTracker \ FileTracker32.dll” / i G:\ develop \ 7z1900-src \ CPP \ 7zip \ Bundles \ Format7zF \ Debug \ 7z.tlog / r “ G:\ DEVELOP \ 7Z1900-SRC \ CPP \ 7ZIP \ BUNDLES \ FORMAT7ZF \ 7ZAES.OBJ | G:\ DEVELOP \ (这里有很多东西)/ b MSBuildConsole_CancelEvent740b58f0bed446469ab46a4bb436cf6a / c “ C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Professional \ VC \ Tools \ MSVC \ 14.15.26726 \ bin \ HostX86 \ x86 \ link.exe“ /错误报告:PROMPT /OUT:“G:\develop\7z1900-src\CPP\7zip\Bundles\Format7zF\Debug\7z.dll” /详细/ INCREMENTAL / NOLOGO odbc32.lib odbccp32.lib /DEF:"....\Archive\Archive2.def“ / MANIFEST / MANIFESTUAC:“ level ='asInvoker'uiAccess ='false'” / manifest:embed / DEBUG /PDB:".\Debug\7z.pdb“ / SUBSYSTEM:CONSOLE / TLBID:1 / DYNAMICBASE / NXCOMPAT /IMPLIB:".\Debug\7z.lib“ / MACHINE:X86 / SAFESEH / ignore:4033 / DLL。\ Debug \ .obj
我不确定上面输出(“。\ Debug \ .obj”)中的最后一个参数是否有问题,但是我无法通过更改各种链接器配置值来影响此问题。