extern POBJECT_TYPE IoDriverObjectType链接错误?

比尔盖茨   2009-11-29 19:15 楼主
根据某位著名的驱动大师的说法:IoDriverObjectType是一个全局变量,只需要声明即可使用。但是声明后提示错误:

extern POBJECT_TYPE IoDriverObjectType;

1>driver2005.obj() : error LNK2001: unresolved external symbol "struct _OBJECT_TYPE  * IoDriverObjectType" (?IoDriverObjectType@@3PAPAU_OBJECT_TYPE@@A)

提示该变量无法链接。谁帮个忙那?

回复评论 (2)


IoDriverObjectType 的 类型是 "POBJECT_TYPE*"  不是 "POBJECT_TYPE"

改为
extern POBJECT_TYPE* IoDriverObjectType;
点赞  2010-1-5 01:54
i can follow you!sorry
点赞  2010-1-5 01:57
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复