VS编译错误:mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file

来源:互联网 发布:算法设计技巧与分析书 编辑:程序博客网 时间:2024/06/05 18:52

 

 

一、问题描述

今天在用DDK编译一个驱动时出现以下错误:

 

1>------ 已启动生成: 项目: DriverDev, 配置: Driver Check Edtion Win32 ------1>正在链接...1>正在嵌入清单...1>mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ".\MyDriver_Check\HelloDDK.sys". R]?n1>生成日志保存在“file://e:\G2\FFT\USBDriver\Windows驱动开发技术详解(pdf书+源代码)\Windows驱动开发技术详解\chapter07\DispatchTest\NT_Driver\MyDriver_Check\BuildLog.htm”1>DriverDev - 1 个错误,0 个警告========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========


 

查看生成目标文件,也是存在的,可是大小为0K。

二、解决方案

项目属性——配置属性——链接器——清单文件中,把生成清单改成否就行了  <--  可能会导致编译好的库无法注册(我遇到过)

Linker --> Manifest File

项目属性——配置属性——清单工具——输入和输出中,把嵌入清单改成否  < --

Manifest Tool --> Input and Output