阅读:1361回复:2
pci驱动程序编译时出现的问题
driverentry.obj() : error LNK2001: unresolved external symbol \"__declspec(dllimport) void __stdcall RtlCopyUnicodeString(struct _UNICODE_STRING *,struct _UNICODE_STRING *)\" (__imp_?RtlCopyUnicodeString@@YGXPAU_UNICODE_STRING@@0@Z)
driverentry.obj() : error LNK2001: unresolved external symbol \"__declspec(dllimport) void * __stdcall ExAllocatePoolWithTag(enum _POOL_TYPE,unsigned long,unsigned long)\" (__imp_?ExAllocatePoolWithTag@@YGPAXW4_POOL_TYPE@@KK@Z) driverentry.obj() : error LNK2001: unresolved external symbol \"__declspec(dllimport) unsigned char __stdcall IoIsWdmVersionAvailable(unsigned char,unsigned char)\" (__imp_?IoIsWdmVersionAvailable@@YGEEE@Z) driverentry.obj() : error LNK2001: unresolved external symbol \"__declspec(dllimport) void __stdcall RtlFreeUnicodeString(struct _UNICODE_STRING *)\" (__imp_?RtlFreeUnicodeString@@YGXPAU_UNICODE_STRING@@@Z) driverentry.obj() : error LNK2001: unresolved external symbol \"__declspec(dllimport) void __stdcall IoDeleteDevice(struct _DEVICE_OBJECT *)\" (__imp_?IoDeleteDevice@@YGXPAU_DEVICE_OBJECT@@@Z) driverentry.obj() : error LNK2001: unresolved external symbol \"__declspec(dllimport) void __stdcall IoDetachDevice(struct _DEVICE_OBJECT *)\" (__imp_?IoDetachDevice@@YGXPAU_DEVICE_OBJECT@@@Z) driverentry.obj() : error LNK2001: unresolved external symbol \"__declspec(dllimport) void __stdcall IoDisconnectInterrupt(struct _KINTERRUPT *)\" (__imp_?IoDisconnectInterrupt@@YGXPAU_KINTERRUPT@@@Z) driverentry.obj() : error LNK2001: unresolved external symbol \"__declspec(dllimport) long __stdcall IoDeleteSymbolicLink(struct _UNICODE_STRING *)\" (__imp_?IoDeleteSymbolicLink@@YGJPAU_UNICODE_STRING@@@Z) driverentry.obj() : error LNK2001: unresolved external symbol \"__declspec(dllimport) void __stdcall RtlInitUnicodeString(struct _UNICODE_STRING *,unsigned short const *)\" (__imp_?RtlInitUnicodeString@@YGXPAU_UNICODE_STRING@@PBG@Z) driverentry.obj() : error LNK2001: unresolved external symbol \"__declspec(dllimport) struct _DEVICE_OBJECT * __stdcall IoAttachDeviceToDeviceStack(struct _DEVICE_OBJECT *,struct _DEVICE_OBJECT *)\" (__imp_?IoAttachDeviceToDeviceStack@@YGPAU_DEVICE_OB JECT@@PAU1@0@Z) |
|
|
沙发#
发布于:2001-11-22 13:21
你的程序的原文件是以cpp为后缀的吗?
|
|
板凳#
发布于:2001-11-23 01:08
使用DEBUG或RELEASE方式编译,不要使用UNICODE方式编译。
|
|
|