error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed
来源:互联网 发布:html中嵌入java代码 编辑:程序博客网 时间:2024/05/03 01:33
MSVC 2005 has bugs when including <intrin.h>.
Second linkage error
If you get the following errors:
error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed
error C2733: second C linkage of overloaded function '_interlockedbittestandreset' not allowed
They happen when both <intrin.h> and <windows.h> are included in the same file. One way to get around it is to define a rename for these functions before including intrin.h. E.g.:
#if _MSC_VER <= 1400#define _interlockedbittestandreset _interlockedbittestandreset_NAME_CHANGED_TO_AVOID_MSVS2005_ERROR#define _interlockedbittestandset _interlockedbittestandset_NAME_CHANGED_TO_AVOID_MSVS2005_ERROR#endif
Unresolved external for intrinsic function
If you get the following or a similar linker error when using an intrinsic function such as _ReadBarrier, _WriteBarrier, _ReadWriteBarrier, etc.
You need to explicitly declare the function as intrinsic (even if you included <intrin.h>). E.g.:
#pragma intrinsic(_ReadWriteBarrier)
See here: http://connect.microsoft.com/VisualS...details/100051
reference:http://blog.assarbad.net/20120425/annoyance-in-the-windows-sdk-headers/
- error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed
- 函数重名Compiler Error C2733: second C linkage of overloaded function 'function' not allowed
- error c2733: second C linkage of overloaded function '_interlockedbittestandreset" not allowed
- VS2005编译DLL错误,error C2491: 'CMyClass::Function' : definition of dllimport function not allowed
- definition of dllimport function not allowed 错误
- definition of dllimport function not allowed 错误
- 解决c++Dll编写过程中出现的definition of dllimport function not allowed
- C++: 解释error: call of overloaded ‘abs(int)’ is ambiguous
- error: a function-definition is not allowed here before ‘{’ token
- error C2511: 'xx函数' : overloaded member function not found in xx类
- error: template with C linkage
- error C2511: send**** : overloaded member function 'void (
- error C2731: 'WinMain' : function cannot be overloaded
- error C2556: 'void __thiscall......overloaded function
- error C2731: 'WinMain' : function cannot be overloaded
- vc2010 error C2733
- C++ previous declaration of.with 'C++' linkage
- C++ previous declaration of...with 'C++' linkage
- VC功能实现
- 激励员工的几大妙招
- C++流和文件流操作
- C_INCLUDE_PATH,LIBRARY_PATH,LD_LIBRARY_PATH
- JavaWeb-WEB应用-虚拟目录三种映射-虚拟主机
- error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed
- ruby 学习笔记(一)
- 关于提升某个进程的权限(ShellExecuteEx)
- webwork标签遍历嵌套list(带有相同字段)
- 敏捷开发在工作中总结
- SharePoint Designer + InfoPath 无代码工作流设计实例
- 因为是你 所以没关系:伤感日志
- session与cookie的区别
- 方法的直接调用,反射调用与……Lambda表达式调用