我用VS2008编写VC程序后编译,编译结果如下:
1>------ Build started: Project: Draw, Configuration: Debug Win32 ------
1>Embedding manifest...
1>mt.exe : general error c101008a: Failed to save the updated manifest to the file "./Debug/Draw.exe.embed.manifest". Bpcn
1>Build log was saved at "file://g:/VCDraw/Draw/Draw/Debug/BuildLog.htm"
1>Draw - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
失败,但是我修改的部分已经成功更改了,这是为什么?这个错误有是什么错误?
后来我在网上找到了这样一段文字:
是微软社区中看到的
Description
When rebuilding projects, mt.exe randomly fails with error c101008a.
The project being rebuilt has not been changed and has previously built successfully.
The project builds successfully on other development workstations.
Building the project again does not fix the issue.
Rebuilding the project does fix the issue.
The project is a native C++ ATL DLL, dynamicly linked, dynamic ATL linkage. The build type was debug.
This problem has been raised a number of times with bug 110491 claiming to fix the problem, and bug 288040 being closed as not reproducable.
The bug occurs on multiple development workstations and affects projects at random (many different projects have failed with the same error and are subsequently fixed by forcing a rebuild)
The error report is as follows:
1>------ Build started: Project: ASEFSync, Configuration: Debug_UMD Win32 ------
1>Compiling...
1>SynchroniseCallBack.cpp
1>Generating Code...
1>Compiling...
1>ASEFSync.cpp
1>FileSafeSyncMgrEnumItems.cpp
1>FileSafeSyncMgrSynchronise.cpp
1>DatabaseWriter.cpp
1>FolderContents_Database.cpp
1>FolderContents_Folder.cpp
1>SynchroniseFolder.cpp
1>CommonGUI.cpp
1>Generating Code...
1>Compiling...
1>dlldatax.c
1>ASEFSync_i.c
1>Generating Code...
1>Linking...
1> Creating library Debug_UMD/ASEFSync.lib and object Debug_UMD/ASEFSync.exp
1>Embedding manifest...
1>mt.exe : general error c101008a: Failed to save the updated manifest to the file "./Debug_UMD/ASEFSync.dll.embed.manifest". The parameter is incorrect.
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 9.00.21022
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>ASEFSync - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 10 up-to-date, 0 skipped ==========
Comments
The attached zip file contains a dump from SysInternals Process Monitor that was captured during a build of the project ASEFSync.
The log contains trace data from all running applications except Process Monitor itself. Only trace data from the build drive and the DevStudio installation drive has been included.
(My OS is on C:, DevStudio is on D:, and the source code is on E:).
My virus scanner has been set to exclude the build tree.
Is far as I can tell, there are no errors related to mt.exe or ASEFSync.dll.embed.manifest being reported from the file system.
mt.exe is reporting "The parameter is incorrect". Can this message be traced to mt.exe's command-line handling, or perhaps its input files?
Posted by Andy77L on 2/25/2008 at 4:15 AM
Thanks for your feedback.
We have marked this bug as a duplicate of another issue we are already tracking. Please see the issue linked to this bug for updates.
Thank you,
Visual Studio Product Team.
Posted by Microsoft on 2/25/2008 at 9:13 PM
Product Language
English
Version
Visual Studio 2008 (All Products and Editions)
Operating System
Windows XP Professional
Operating System Language
English
Which language?
C++
Where did you encounter the problem?
Compiler
Details
Please provide error message in description
Steps to Reproduce
The issue occurs at random.
Once the issue has occured, it is only fixed by rebuilding the project.
Actual Results
The project fails to build. mt.exe fails with error c101008a.
Expected Results
The project is fine and so the build process should complete successfully.
TAP Code (if applicable)
File Attachments
1 attachments
Logfile.zip
Attached Files:
从这段来看,这应该是VS2008的一个bug.