关于vs2017使用DLP4500 SDK上一个常见错误的解决

https://e2e.ti.com/support/dlp/f/94/p/749850/2786919

1>DLP_SDK.lib(hid.obj) : error LNK2019: Unresolved external symbol __imp__SetupDiEnumDeviceInfo@12,This symbol is referenced in the function _hid_enumerate
1>DLP_SDK.lib(hid.obj) : error LNK2019: Unresolved external symbol __imp__SetupDiDestroyDeviceInfoList@4,This symbol is referenced in the _hid_enumerate 
1>DLP_SDK.lib(hid.obj) : error LNK2019: Unresolved external symbol __imp__SetupDiEnumDeviceInterfaces@20,This symbol is referenced in the _hid_enumerate 
1>DLP_SDK.lib(hid.obj) : error LNK2019: Unresolved external symbol __imp__SetupDiGetDeviceInterfaceDetailA@24,This symbol is referenced in the _hid_enumerate 
1>DLP_SDK.lib(hid.obj) : error LNK2019: Unresolved external symbol __imp__SetupDiGetClassDevsA@16,This symbol is referenced in the _hid_enumerate 
1>DLP_SDK.lib(hid.obj) : error LNK2019: Unresolved external symbol __imp__SetupDiGetDeviceRegistryPropertyA@28,This symbol is referenced in the _hid_enumerate 
1>F:\software\dlpsdkvs2017_test\TIDA-00254_LCr4500_MachineVision-bld\bin\Release\DLP_LightCrafter_4500_3D_Scan_Application.exe : fatal error LNK1120: 6 external commands that cannot be resolved

针对这种报错,主要是缺少了NT设备管理一个文件的lib,添加好就行setupapi.lib

检测到DLP4500的usb——运行效果:

1 个回复