报错:
1>cpkdev.lib(hiddrv.obj) : error LNK2001: unresolved external symbol _HidD_GetFeature@12
1>cpkdev.lib(hiddrv.obj) : error LNK2001: unresolved external symbol _HidD_SetFeature@12
1>cpkdev.lib(hiddrv.obj) : error LNK2001: unresolved external symbol _HidD_GetAttributes@8
1>cpkdev.lib(hiddrv.obj) : error LNK2001: unresolved external symbol _HidD_GetHidGuid@4
解决:
添加Hid.lib;// Hid.lib不存在系统内,需要从外部导入
报错:
1>cpkdev.lib(hiddrv.obj) : error LNK2001: unresolved external symbol __imp__SetupDiGetClassDevsA@16
1>cpkdev.lib(hiddrv.obj) : error LNK2001: unresolved external symbol __imp__SetupDiDestroyDeviceInfoList@4
1>cpkdev.lib(hiddrv.obj) : error LNK2001: unresolved external symbol __imp__SetupDiGetDeviceInterfaceDetailA@24
1>cpkdev.lib(hiddrv.obj) : error LNK2001: unresolved external symbol __imp__SetupDiEnumDeviceInterfaces@20
解决:
添加SetupAPI.lib;// 存在于Windows系统内,可直接添加
libcrypto.lib
Crypt32.lib
Ws2_32.lib
SetupAPI.lib
Hid.lib