|
求助unresolved external symbol 问题!
[复制链接]
在bulid一个USB设备驱动程序的sample时,link时出错,如下:
Error 6 BUILD: [01:0000000100:ERRORE] UsbGPS.obj : error LNK2019: unresolved external symbol GetSetKeyValues referenced in function USBInstallDriver
Error 7 BUILD: [01:0000000101:ERRORE] UsbGPS.obj : error LNK2019: unresolved external symbol RegisterClientSettings referenced in function USBInstallDriver
Error 8 BUILD: [01:0000000102:ERRORE] UsbGPS.obj : error LNK2019: unresolved external symbol RegisterClientDriverID referenced in function USBInstallDriver
Error 9 BUILD: [01:0000000103:ERRORE] UsbGPS.obj : error LNK2019: unresolved external symbol UnRegisterClientDriverID referenced in function USBUnInstallDriver
Error 10 BUILD: [01:0000000104:ERRORE] UsbGPS.obj : error LNK2019: unresolved external symbol UnRegisterClientSettings referenced in function USBUnInstallDriver
Error 11 BUILD: [01:0000000105:ERRORE] UsbGPS.obj : error LNK2019: unresolved external symbol IssueBulkTransfer referenced in function "unsigned long __cdecl GPS_Read(struct _USBGPS_DEVICE *,unsigned char *,unsigned long)" (?GPS_Read@@YAKPAU_USBGPS_DEVICE@@PAEK@Z)
Error 12 BUILD: [01:0000000106:ERRORE] UsbGPS.obj : error LNK2019: unresolved external symbol DefaultTransferComplete referenced in function "unsigned long __cdecl GPS_Read(struct _USBGPS_DEVICE *,unsigned char *,unsigned long)" (?GPS_Read@@YAKPAU_USBGPS_DEVICE@@PAEK@Z)
Error 13 BUILD: [01:0000000107:ERRORE] UsbGPS.obj : error LNK2019: unresolved external symbol CloseTransferHandle referenced in function "int __cdecl SetUsbInterface(struct _USBGPS_DEVICE *)" (?SetUsbInterface@@YAHPAU_USBGPS_DEVICE@@@Z)
Error 14 BUILD: [01:0000000108:ERRORE] D:\WINCE600\platform\SMDK6410\target\ARMV4I\retail\UsbGPS.dll : fatal error LNK1120: 8 unresolved externals
头文件中#include "usbclient.h",
sources文件设置了
TARGETLIBS= \
$(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib \
$(_SYSGENOAKROOT)\lib\$(_CPUINDPATH)\ceddk.lib \
请问如何解决啊?
|
|