VS2010编译错误之mt.exe : general error c101008d

本文介绍了解决mt.exe错误的方法,包括调整Visual Studio项目配置属性中的链接器和清单工具设置,以及关闭可能干扰mt.exe执行的杀毒软件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

首先搜索到如下解决方案:

1

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

Linker --> Manifest File

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

Manifest Tool --> Input and Output

2

然后,搜索到如下结论:

微软的官方解释:The Mt.exe file is a tool that generates signed files and catalogs.
http://msdn.microsoft.com/en-us/library/aa375649.aspx

生成可执行程序的时候调用mt.exe将manifest文件写入该可执行程序,但是由于杀毒软件的监控,该文件的句柄被截获,不可写入。

关掉杀毒软件试试。

按照上面1的思路,问题解决。注意,我在VS2010中的图形如下所示,供参考。

14466241_201305261847371.jpg





















本文转自朱先忠老师51CTO博客,原文链接:http://blog.51cto.com/zhuxianzhong/1439727 ,如需转载请自行联系原作者











fj.png无标题.jpg

在使用STM32CubeIDE进行Build时,报错“arm_math.h”找不着,但是“arm_math.h”却存在于Project下的Drivers/CMSIS/DSP/Include文件夹中,这怎么处理? arm-none-eabi-gcc "../Drivers/CMSIS/DSP/Source/MatrixFunctions/arm_mat_cmplx_mult_f32.c" -mcpu=cortex-m0 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F030xC -c -I../Core/Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/CMSIS/DSP/Source/MatrixFunctions/arm_mat_cmplx_mult_f32.d" -MT"Drivers/CMSIS/DSP/Source/MatrixFunctions/arm_mat_cmplx_mult_f32.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Drivers/CMSIS/DSP/Source/MatrixFunctions/arm_mat_cmplx_mult_f32.o" ../Drivers/CMSIS/DSP/Source/MatrixFunctions/arm_mat_add_f32.c:29:10: fatal error: arm_math.h: No such file or directory 29 | #include "arm_math.h" | ^~~~~~~~~~~~ compilation terminated. make: *** [Drivers/CMSIS/DSP/Source/MatrixFunctions/subdir.mk:91: Drivers/CMSIS/DSP/Source/MatrixFunctions/arm_mat_add_f32.o] Error 1 make: *** Waiting for unfinished jobs.... ../Drivers/CMSIS/DSP/Source/MatrixFunctions/arm_mat_add_q15.c:29:10: fatal error: arm_math.h: No such file or directory 29 | #include "arm_math.h" | ^~~~~~~~~~~~ compilation terminated. make: *** [Drivers/CMSIS/DSP/Source/MatrixFunctions/subdir.mk:91: Drivers/CMSIS/DSP/Source/MatrixFunctions/arm_mat_add_q15.o] Error 1 ../Drivers/CMSIS/DSP/Source/MatrixFunctions/arm_mat_add_q31.c:29:10: fatal error: arm_math.h: No such file or directory 29 | #include "arm_math.h" | ^~~~~~~~~~~~ compilation terminated. make: *** [Drivers/CMSIS/DSP/Source/MatrixFunctions/subdir.mk:91: Drivers/CMSIS/DSP/Source/MatrixFunctions/arm_mat_add_q31.o] Error 1 ../Drivers/CMSIS/DSP/Source/MatrixFunctions/arm_mat_cmplx_mult_f32.c:29:10: fatal error: arm_math.h: No such file or directory 29 | #include "arm_math.h" | ^~~~~~~~~~~~ compilation terminated. make: *** [Drivers/CMSIS/DSP/Source/MatrixFunctions/subdir.mk:91: Drivers/CMSIS/DSP/Source/MatrixFunctions/arm_mat_cmplx_mult_f32.o] Error 1 "make -j12 all" terminated with exit code 2. Build might be incomplete.
07-05
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值