zoukankan      html  css  js  c++  java
  • vs2013CCyusb报错(CyAPI.obj)


    错误 5 error LNK1120: 4 个无法解析的外部命令 F:相片压缩项目PhotoshowProject_ledLedScreenTest_TaptapMusicLedScreenTest_TaptapMusicx64ReleaseLedScreenTest.exe LedScreenTest
    错误 1 error LNK2019: 无法解析的外部符号 __imp_SetupDiDestroyDeviceInfoList,该符号在函数 “public: unsigned char __cdecl CCyUSBDevice::DeviceCount(void)” (?DeviceCount@CCyUSBDevice@@QEAAEXZ) 中被引用 F:相片压缩项目PhotoshowProject_ledLedScreenTest_TaptapMusicLedScreenTest_TaptapMusicLedScreenTestCyAPI.lib(CyAPI.obj) LedScreenTest
    错误 2 error LNK2019: 无法解析的外部符号 __imp_SetupDiEnumDeviceInterfaces,该符号在函数 “public: unsigned char __cdecl CCyUSBDevice::DeviceCount(void)” (?DeviceCount@CCyUSBDevice@@QEAAEXZ) 中被引用 F:相片压缩项目PhotoshowProject_ledLedScreenTest_TaptapMusicLedScreenTest_TaptapMusicLedScreenTestCyAPI.lib(CyAPI.obj) LedScreenTest
    错误 3 error LNK2019: 无法解析的外部符号 __imp_SetupDiGetClassDevsA,该符号在函数 “public: unsigned char __cdecl CCyUSBDevice::DeviceCount(void)” (?DeviceCount@CCyUSBDevice@@QEAAEXZ) 中被引用 F:相片压缩项目PhotoshowProject_ledLedScreenTest_TaptapMusicLedScreenTest_TaptapMusicLedScreenTestCyAPI.lib(CyAPI.obj) LedScreenTest
    错误 4 error LNK2019: 无法解析的外部符号 __imp_SetupDiGetDeviceInterfaceDetailA,该符号在函数 “public: bool __cdecl CCyUSBDevice::CreateHandle(unsigned char)” (?CreateHandle@CCyUSBDevice@@QEAA_NE@Z) 中被引用 F:相片压缩项目PhotoshowProject_ledLedScreenTest_TaptapMusicLedScreenTest_TaptapMusicLedScreenTestCyAPI.lib(CyAPI.obj) LedScreenTest

    出现这个问题困扰了我许久,然后,我发现只是缺少了个库。。。
    但是很奇怪,我这个用的是opencv和usb一起,但是分开使用的工程是没有问题,整合到一起就出错了,但是做完下面的步骤就好了。。。
    我也很是惊讶。。
    这个好的前提是子路径啥的要先正确。
    解决方式:


    加上

    setupapi.lib
    就好了
    解决

    一键三连呀!
  • 相关阅读:
    Misha and Changing Handles
    Garland CodeForces
    Hyperset
    Common Prefixes
    vue笔记整理
    react学习笔记一些整理
    react和vue项目总结
    Vue+elementUi《后台管理系统》前端实现02
    Vue+elementUi《后台管理系统》后台接口准备01
    React+AntdUi实现《好客租房系统》发布房源08
  • 原文地址:https://www.cnblogs.com/jee-cai/p/14095336.html
Copyright © 2011-2022 走看看