我将PB下面的printer USB程序copy到一个文件夹中. 用EVC4新建一个dll工程. 并包含这些C.H文件及设置路径. 编译连接出错如下:
Creating library ARMV4IRel/apdusb.lib and object ARMV4IRel/apdusb.exp
usbapd.obj : error LNK2019: unresolved external symbol RegisterClientSettings referenced in function USBInstallDriver
usbapd.obj : error LNK2019: unresolved external symbol RegisterClientDriverID referenced in function USBInstallDriver
usbapd.obj : error LNK2019: unresolved external symbol UnRegisterClientDriverID referenced in function USBUnInstallDriver
usbapd.obj : error LNK2019: unresolved external symbol UnRegisterClientSettings referenced in function USBUnInstallDriver
ARMV4IRel/apdusb.dll : fatal error LNK1120: 4 unresolved externals
请问这是怎么回事情.
这几个函数在usbdi.h中有声明啊. 我已经将usbdi.h和usbclient.lib包含进来了.
可是还是连接出错. 不知道哪里有问题.
多半是缺少库文件(.lib),或者是没有把库文件链接进去,#pragma comment lib