解决 vc6 unresolved external symbol ___security_cookie 问题
2017-03-09 13:38
519 查看
vc6使用高版本编译器生成的lib时,编译不通过:
detours.lib(detours.obj) : error LNK2001: unresolved external symbol ___security_cookie
detours.lib(disasm.obj) : error LNK2001: unresolved external symbol ___security_cookie
detours.lib(detours.obj) : error LNK2001: unresolved external symbol __except_handler4
detours.lib(detours.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
detours.lib(disasm.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
加入下面代码可解决:
#if _MSC_VER < 1300 // 1200 == VC++ 6.0
extern "C"
{
int __security_cookie = 0; //比错误提示的名称少一个下划线
void __fastcall __security_check_cookie(unsigned int cookie) //参数个数要正确
{
}
void * __cdecl _except_handler4(void *ExceptionRecord, void *EstablisherFrame, void *ContextRecord, void *DispatcherContext)
{
return 0;
}
//可根据提示继续添加....
};
#endif
detours.lib(detours.obj) : error LNK2001: unresolved external symbol ___security_cookie
detours.lib(disasm.obj) : error LNK2001: unresolved external symbol ___security_cookie
detours.lib(detours.obj) : error LNK2001: unresolved external symbol __except_handler4
detours.lib(detours.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
detours.lib(disasm.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
加入下面代码可解决:
#if _MSC_VER < 1300 // 1200 == VC++ 6.0
extern "C"
{
int __security_cookie = 0; //比错误提示的名称少一个下划线
void __fastcall __security_check_cookie(unsigned int cookie) //参数个数要正确
{
}
void * __cdecl _except_handler4(void *ExceptionRecord, void *EstablisherFrame, void *ContextRecord, void *DispatcherContext)
{
return 0;
}
//可根据提示继续添加....
};
#endif
相关文章推荐
- 解决 vc6 unresolved external symbol ___security_cookie 问题
- unresolved external symbol __security_check_cookie问题
- unresolved external symbol vc++ 系列error的解决方法
- vc中error LNK2001:unresolved external symbol _WinMain@16的解决方法
- vc中error LNK2001:unresolved external symbol _WinMain@16的解决方法
- vc中error LNK2001:unresolved external symbol _WinMain@16的解决方法(转)
- main.obj : error LNK2001: unresolved external symbol ___security_cookie
- LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 问题的解决
- vc中error LNK2001:unresolved external symbol _WinMain@16的解决方法
- [转]vc中 error LNK2001:unresolved external symbol _WinMain@16的解决方法
- vc中error LNK2001:unresolved external symbol _WinMain@16的解决方法
- error LNK2001: unresolved external symbol __imp__WSACleanup@0类似问题的解决
- vc中error LNK2001:unresolved external symbol _WinMain@16的解决方法
- vs 2005链接时错误的解决方案 error LNK2019: unresolved external symbol __security_cookie referenced in function
- vc中error LNK2001:unresolved external symbol _WinMain@16的解决方法
- vc中error LNK2001:unresolved external symbol _WinMain@16的解决方法
- libcpmt.lib(cerr.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
- VC++编译出错问题(3)error LNK2001: unresolved external symbol "public:xxxxx
- vc编译报错 unresolved external symbol __imp__PlaySoundA@12 解决办法
- vs 2005链接时错误的解决方案 error LNK2019: unresolved external symbol __security_cookie referenced in function