阅读:915回复:0
求助:DriverWorks的驱动程序在VC下链接出错
我直接在VC中打开示例程序HelloWdm,编译通过,链接时出现错误:
HelloWdm error LNK2001: 无法解析的外部符号 ___CxxFrameHandler HelloWdm error LNK2001: 无法解析的外部符号 ___CxxFrameHandler HelloWdm error LNK2001: 无法解析的外部符号 __EH_prolog HelloApp error LNK2019: 无法解析的外部符号 @__security_check_cookie@4 ,该符号在函数 "void * __cdecl OpenByInterface(struct _GUID *,unsigned long,unsigned long *)" (?OpenByInterface@@YAPAXPAU_GUID@@KPAK@Z) 中被引用 HelloApp error LNK2019: 无法解析的外部符号 ___security_cookie ,该符号在函数 "void * __cdecl OpenByInterface(struct _GUID *,unsigned long,unsigned long *)" (?OpenByInterface@@YAPAXPAU_GUID@@KPAK@Z) 中被引用 HelloWdm error LNK2019: 无法解析的外部符号 __EH_prolog ,该符号在函数 "public: __thiscall SimpleWdmDevice::SimpleWdmDevice(struct _DEVICE_OBJECT *,unsigned long)" (??0SimpleWdmDevice@@QAE@PAU_DEVICE_OBJECT@@K@Z) 中被引用 HelloApp fatal error LNK1120: 2 个无法解析的外部命令 我的编译环境是VC++.NET,XP DDK,DriverStudio 2.7,已经成功生成过DS的库文件。 请问这是什么原因? 谢谢! |
|