vc2010 error C2733

头文件intrin.h不在DDK/Inc下面,需要从VS2005/VC/Include
   下面拷贝过来。

   编译时,可能提示:

   error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed L:/DDK/Vista/inc/ddk/intrin.h 912 
   error C2733: second C linkage of overloaded function '_interlockedbittestandreset' not allowed L:/DDK/Vista/inc/ddk/intrin.h 913 
   error C2733: second C linkage of overloaded function '_interlockedbittestandset64' not allowed L:/DDK/Vista/inc/ddk/intrin.h 918 
   error C2733: second C linkage of overloaded function '_interlockedbittestandreset64' not allowed L:/DDK/Vista/inc/ddk/intrin.h 919 


   到intrin.h里边去,注释掉相关四行代码即可:

   //__MACHINEI(unsigned char _interlockedbittestandset(long *a, long b))
   //__MACHINEI(unsigned char _interlockedbittestandreset(long *a, long b))
   //__MACHINEX64(unsigned char _interlockedbittestandset64(__int64 *a, __int64 b))
   //__MACHINEX64(unsigned char _interlockedbittestandreset64(__int64 *a, __int64 b))

   上面只是让编译通过,想连接通过,还必须设置编译选项C/C++/Optimiztation: Enable Intrinsic Funcions,勾上。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值