我正在尝试构建项目,该项目以前为 MSVS 2013 C++ 编译器和英特尔 C++ 编译器 2015 设计。我创建了称为'Unicode ICC Release'
标准配置副本的新项目'Unicode Release'
配置。之后,我使用英特尔编译器更改了平台工具集。不幸的是,我收到此错误:
Error 9 error c101008c: Failed to read the manifest from the resource of file "Project.dll". The operation failed. Project\mt.exe Project
英特尔链接器的命令行如下所示:
/OUT:"../../Path1/Project.dll" /MANIFEST /NXCOMPAT /PDB:"Path2\\Pdb\Project.pdb" /DYNAMICBASE /LARGEADDRESSAWARE /IMPLIB:"../Path3/Project.lib" /DEBUG /DLL /MACHINE:X86 /OPT:REF /SAFESEH /INCREMENTAL:NO /SUBSYSTEM:WINDOWS /MANIFESTUAC:NO /ManifestFile:"Path4\Project.dll.intermediate.manifest" /OPT:ICF /NOLOGO /LIBPATH:"../Lib.Win32" /TLBID:1
而且Project.dll
真的不包含manifest!
有任何想法如何解决这种行为?
升级版:
MSVS 链接器诊断输出:
1> Finished searching libraries
1>
1> Invoking mt.exe:
1> /verbose
1> /out:"C:\Users\LOMONO~1.MIN\AppData\Local\Temp\lnk{A7C6A6FD-79FB-46A7-8AF9-F8FC8729046E}.tmp"
1> /manifest
1> "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\Include\Manifest\dpiaware.manifest"
1> C:\Users\LOMONO~1.MIN\AppData\Local\Temp\lnk{F104CF0A-974F-45E5-97C2-C71C4265AE20}.tmp
1> Microsoft (R) Manifest Tool version 6.1.7716.0
1>
1> Copyright (c) Microsoft Corporation 2009.
1>
1> All rights reserved.
1>
1>
1> Invoking rc.exe:
1> /v
1> /x
1> /fo
1> "C:\Users\LOMONO~1.MIN\AppData\Local\Temp\lnk{E7AC97BB-2CBB-4C34-8140-C1BA750D564E}.tmp"
1> "C:\Users\LOMONO~1.MIN\AppData\Local\Temp\lnk{707AEC66-9E09-4CBF-92FF-E00B822645AC}.tmp"
1> Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385
1>
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1>
1> Creating C:\Users\LOMONO~1.MIN\AppData\Local\Temp\lnk{E7AC97BB-2CBB-4C34-8140-C1BA750D564E}.tmp
1>
1> Using codepage 1251 as default
1>
1> C:\Users\LOMONO~1.MIN\AppData\Local\Temp\lnk{707AEC66-9E09-4CBF-92FF-E00B822645AC}.tmp.
1> Writing 24:2, lang:0x409, size 334
1>
1> Invoking cvtres.exe:
1> /machine:x86
1> /verbose
1> /out:"C:\Users\LOMONO~1.MIN\AppData\Local\Temp\lnk{FEB0B0CB-A8E7-4359-BD8B-AB1996E47436}.tmp"
1> /readonly
1> "Win32\Unicode Release\Version.res"
1> "Win32\Unicode Release\Project.res"
1> "C:\Users\LOMONO~1.MIN\AppData\Local\Temp\lnk{E7AC97BB-2CBB-4C34-8140-C1BA750D564E}.tmp"
1> Microsoft (R) Windows Resource To Object Converter Version 12.00.21005.1
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> adding resource. type:VERSION, name:1, language:0x0000, flags:0x30, size:568
1> adding resource. type:STRING, name:7, language:0x0409, flags:0x1030, size:48
1> adding resource. type:MANIFEST, name:2, language:0x0409, flags:0x30, size:334
英特尔 xlink 输出:
1> Finished searching libraries
1>
1> Invoking cvtres.exe:
1> /machine:x86
1> /verbose
1> /out:"C:\Users\LOMONO~1.MIN\AppData\Local\Temp\lnk{3DBDEC74-99D1-4C46-8274-068BDB33431D}.tmp"
1> /readonly
1> "Win32\Unicode ICC Release\Version.res"
1> "Win32\Unicode ICC Release\Project.res"
1> Microsoft (R) Windows Resource To Object Converter Version 12.00.21005.1
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> adding resource. type:VERSION, name:1, language:0x0000, flags:0x30, size:568
1> adding resource. type:STRING, name:7, language:0x0409, flags:0x1030, size:48