阅读:5238回复:4
求助:Cypress Suite USB 3.4提供的CYAPI.lib在VC6下编译失败?如何解决?
用Cypress Suite USB 3.4提供的CYAPI.lib在VC6.0下编译出现如下错误:
cyapi.lib(CyAPI.obj) : error LNK2001: unresolved external symbol ___security_cookie cyapi.lib(CyAPI.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 cyapi.lib(CyAPI.obj) : error LNK2001: unresolved external symbol ___CxxFrameHandler3 cyapi.lib(CyAPI.obj) : error LNK2001: unresolved external symbol __EH_epilog3 cyapi.lib(CyAPI.obj) : error LNK2001: unresolved external symbol __EH_prolog3 cyapi.lib(CyAPI.obj) : error LNK2001: unresolved external symbol __EH_epilog3_GS cyapi.lib(CyAPI.obj) : error LNK2001: unresolved external symbol __EH_prolog3_GS 如何解决呢? |
|
沙发#
发布于:2010-04-14 20:25
如下申明:
extern "C" __declspec(naked) void __CxxFrameHandler3(void){} extern "C" __declspec(naked) void _EH_epilog3(void){} extern "C" void __fastcall __security_check_cookie(ULONG cookie){} 可减少到: cyapi.lib(CyAPI.obj) : error LNK2001: unresolved external symbol ___security_cookie cyapi.lib(CyAPI.obj) : error LNK2001: unresolved external symbol __EH_prolog3 cyapi.lib(CyAPI.obj) : error LNK2001: unresolved external symbol __EH_epilog3_GS cyapi.lib(CyAPI.obj) : error LNK2001: unresolved external symbol __EH_prolog3_GS 但接下来怎么办呢? |
|
板凳#
发布于:2010-04-14 20:36
我想Cypress Suite USB 3.4提供的CYAPI.lib应该是在VC6以上的版本上生成的(编译器提供/GS(缓冲区安全检查)选项),但VC6没有此选项,那要调用此CYAPI.lib怎么办呢?
|
|
地板#
发布于:2010-05-13 21:48
用VS2008就不会用错误,你可以试一下
|
|
地下室#
发布于:2011-03-08 23:38
老版本的cyapi.lib就可以在vc6下使用,你可以搜索下
|
|