quarter
驱动牛犊
驱动牛犊
  • 注册日期2002-01-29
  • 最后登录2005-02-22
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2077回复:0

在link时出现的问题,寻求解决办法.......

楼主#
更多 发布于:2002-05-15 20:25
以下错误不知道该如何解决,我在project->setting里都看了,usbdi.h和usbdlib.h都设置正确了,为什么会出现这些问题?寻求解决办法。

Linking...
MyUSB.obj : error LNK2001: unresolved external symbol \"unsigned long __cdecl DbgPrint(char *,...)\" (?DbgPrint@@YAKPADZZ)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) long __fastcall IofCallDriver(struct _DEVICE_OBJECT *,struct _IRP *)\" (__imp_?IofCallDriver@@YIJPAU_DEVICE_OBJECT@@PAU_IRP@@@Z)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) void __fastcall IofCompleteRequest(struct _IRP *,char)\" (__imp_?IofCompleteRequest@@YIXPAU_IRP@@D@Z)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) struct _DEVICE_OBJECT * __stdcall IoAttachDeviceToDeviceStack(struct _DEVICE_OBJECT *,struct _DEVICE_OBJECT *)\" (__imp_?IoAttachDeviceToDeviceStack@@YGPAU_DEVICE_OBJECT@@PA
U1@0@Z)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) long __stdcall IoSetDeviceInterfaceState(struct _UNICODE_STRING *,unsigned char)\" (__imp_?IoSetDeviceInterfaceState@@YGJPAU_UNICODE_STRING@@E@Z)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) void __stdcall IoDeleteDevice(struct _DEVICE_OBJECT *)\" (__imp_?IoDeleteDevice@@YGXPAU_DEVICE_OBJECT@@@Z)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) long __stdcall IoRegisterDeviceInterface(struct _DEVICE_OBJECT *,struct _GUID const *,struct _UNICODE_STRING *,struct _UNICODE_STRING *)\" (__imp_?IoRegisterDeviceInterface@
@YGJPAU_DEVICE_OBJECT@@PBU_GUID@@PAU_UNICODE_STRING@@2@Z)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) long __stdcall IoCreateDevice(struct _DRIVER_OBJECT *,unsigned long,struct _UNICODE_STRING *,unsigned long,unsigned long,unsigned char,struct _DEVICE_OBJECT * *)\" (__imp_?I
oCreateDevice@@YGJPAU_DRIVER_OBJECT@@KPAU_UNICODE_STRING@@KKEPAPAU_DEVICE_OBJECT@@@Z)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) void __stdcall ExFreePool(void *)\" (__imp_?ExFreePool@@YGXPAX@Z)
MyUSB.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)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) long __stdcall KeWaitForSingleObject(void *,enum _KWAIT_REASON,char,unsigned char,union _LARGE_INTEGER *)\" (__imp_?KeWaitForSingleObject@@YGJPAXW4_KWAIT_REASON@@DEPAT_LARGE
_INTEGER@@@Z)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) void __stdcall RtlAssert(void *,void *,unsigned long,char *)\" (__imp_?RtlAssert@@YGXPAX0KPAD@Z)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) void __stdcall KeInitializeEvent(struct _KEVENT *,enum _EVENT_TYPE,unsigned char)\" (__imp_?KeInitializeEvent@@YGXPAU_KEVENT@@W4_EVENT_TYPE@@E@Z)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) long __stdcall KeSetEvent(struct _KEVENT *,long,unsigned char)\" (__imp_?KeSetEvent@@YGJPAU_KEVENT@@JE@Z)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) struct _IRP * __stdcall IoBuildDeviceIoControlRequest(unsigned long,struct _DEVICE_OBJECT *,void *,unsigned long,void *,unsigned long,unsigned char,struct _KEVENT *,struct
_IO_STATUS_BLOCK *)\" (__imp_?IoBuildDeviceIoControlRequest@@YGPAU_IRP@@KPAU_DEVICE_OBJECT@@PAXK1KEPAU_KEVENT@@PAU_IO_STATUS_BLOCK@@@Z)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) struct _USB_INTERFACE_DESCRIPTOR * __stdcall USBD_ParseConfigurationDescriptorEx(struct _USB_CONFIGURATION_DESCRIPTOR *,void *,long,long,long,long,long)\" (__imp_?USBD_Parse
ConfigurationDescriptorEx@@YGPAU_USB_INTERFACE_DESCRIPTOR@@PAU_USB_CONFIGURATION_DESCRIPTOR@@PAXJJJJJ@Z)
MyUSB.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) struct _URB * __stdcall USBD_CreateConfigurationRequest(struct _USB_CONFIGURATION_DESCRIPTOR *,unsigned short *)\" (__imp_?USBD_CreateConfigurationRequest@@YGPAU_URB@@PAU_US
B_CONFIGURATION_DESCRIPTOR@@PAG@Z)
Debug\\UDK12.SYS : fatal error LNK1120: 17 unresolved externals
Error executing link.exe.

UDK12.SYS - 18 error(s), 0 warning(s)
游客

返回顶部