vc中添加asm文件

以前用vs2008的时候把.asm文件加入到工程后会自动提示使用masm生成规则,现在换城vs2010后添加.asm文件没有默认的处理规则。网上找到个方法是英文的,本人用的vs2010是中文的,上面的英文菜单一个个核对才找到...

 

 

这个就是解决方法了:

http://connect.microsoft.com/VisualStudio/feedback/details/551111/unable-to-add-asm-file-to-static-library-in-vs2010-rtm

 

摘抄如下:

Thanks for reporting this issue. The issue you are experiencing is by design. The reason that happens is because the "masm" rule is not enabled for your project. To enable the masm rule, right click on the project choose "Build Customizations" and check "masm". After hitting ok on the dialog you will be able to choose "Microsoft Macro Assembler" in the "Item Type" drop down.

 

 

解决方法:右键菜单里选择“Build Customizations”,然后把masm那个选项勾上即可

 

(Build Customizations了,vs2010翻译:“生成自定义”,vs2008翻译:“自定义生成规则”)

 

 

把asm文件加入到工程的时候会自动添加masm生成规则了(如果已经添加了移除再次添加)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值