完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在为我们的FX3板构建一个C++ DLL。当我试图构建代码时,我会收到以下链接错误。我该怎么改正?
1 & gt;CyAP.LIB(CyAPI .Obj:):错误LNK2019:未解析的外部符号α-IMPIOSUpdidiDeffyDeice在函数中引用的“Fuffel:UnSchar Car SythCaseCubDe::DeviceCount(Valk)”(4)DeVeCeCut@ cCysButhEng@ @ qAEXEZ) 1 & gt;CyAP.LIB(CyAPI .Obj:):错误LNK2019:未解析的外部符号α-IMPIOSSETUPDIONDEVICE接口@ 20在函数中引用:“公共:无符号CHAR,这个调用CCIUSB设备::DeviceCount(空隙)”(?)DeVeCeCut@ cCysButhEng@ @ qAEXEZ) 1 & gt;CyAP.LIB(CyAP.Obj:):错误LNK2019:在函数“公共:未签名CHAR,StClaseCysUbDe:::DeviceCount(空隙)”中引用的未解析的外部符号α-IMPIOSSETUPGIDETClASEDEVSA(16)引用(?DeVeCeCut@ cCysButhEng@ @ qAEXEZ) 1 & gt;CyAP.LIB(CyAP.Obj:):错误LNK2019:未解析的外部符号α-IMPUIGETSUPGDIGETEDICEDIFILILILILA @ 24在函数“公共:BooLo.TyCalsCysUbDe::CreateHandle(unChar char)”中引用(?)CreateHandle @ CysUbDebug @ @ QaEynne @ z) 以上来自于百度翻译 以下为原文 I'm building a C++ DLL for our FX3 board. When I try to build the code, I get the following link errors. How do I correct this? 1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiDestroyDeviceInfoList@4 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ) 1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiEnumDeviceInterfaces@20 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ) 1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiGetClassDevsA@16 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ) 1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiGetDeviceInterfaceDetailA@24 referenced in function "public: bool __thiscall CCyUSBDevice::CreateHandle(unsigned char)" (?CreateHandle@CCyUSBDevice@@QAE_NE@Z) |
|
相关推荐
5个回答
|
|
我想你必须把“StuuPopi.LIB”添加到你的图书馆列表中。
以上来自于百度翻译 以下为原文 I think you must add "Setupapi.lib" to your list of libraries. |
|
|
|
同样的错误在这里:
错误5错误LNK2019:未解析的外部符号CreateHandle,SuffDigEdEdGeDeice接口DeLILLA @ 24引用在函数“Pube:BooLo.TyCaseCysUbDe:::(unChar char)”(?CreateHandle @ CysUbDebug @ @ QAEYNEZ.Z)P: CyiBii-USB 3调试TestSWixNexBuythCyAPI.LIB(CyAPI .Obj.) 错误4错误LNK2019:在函数“公共:未签名CHAR SythCaseCysBeDe::DeviceCount(无效)”中引用的未解析的外部符号αIMPIOSUTIGUDIGETCAREDVESSA @ 16(?DeCeCeCut @ CysUbDebug @ @ QAEXZ)P:CyiBii-USB 3调试TestSWixNexBuythCyAPI.LIB(CyAPI .Obj.) 错误3错误LNK2019:未解析的外部符号αIMPIOSUSEDUPDIONDEVICE接口@ 20在函数中引用“公共:无符号CHAR,这个调用CCIUSB设备::DeviceCount(空隙)”(?DeCeCeCut @ CysUbDebug @ @ QAEXZ)P:CyiBii-USB 3调试TestSWixNexBuythCyAPI.LIB(CyAPI .Obj.) 错误2错误:LNK2019:未解析的外部符号DeviceCount函数,在函数中引用“Fube:未签名CHAR,这个调用CCIUSB设备::(无效)”(?DeCeCeCut @ CysUbDebug @ @ QAEXZ)P:CyiBii-USB 3调试TestSWixNexBuythCyAPI.LIB(CyAPI .Obj.) 错误6错误LNK1120:4未解析的外部P::CyiBii-USB 3调试TestSWixNexBuxDebug TestSW.EXE 我怎样才能解决这个问题呢?这是一个阻塞问题… 以上来自于百度翻译 以下为原文 Same error here: Error 5 error LNK2019: unresolved external symbol __imp__SetupDiGetDeviceInterfaceDetailA@24 referenced in function "public: bool __thiscall CCyUSBDevice::CreateHandle(unsigned char)" (?CreateHandle@CCyUSBDevice@@QAE_NE@Z) P:Colibiri - USB 3.0 DebugTestSW_new_driverCyAPI.lib(CyAPI.obj) Error 4 error LNK2019: unresolved external symbol __imp__SetupDiGetClassDevsA@16 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ) P:Colibiri - USB 3.0 DebugTestSW_new_driverCyAPI.lib(CyAPI.obj) Error 3 error LNK2019: unresolved external symbol __imp__SetupDiEnumDeviceInterfaces@20 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ) P:Colibiri - USB 3.0 DebugTestSW_new_driverCyAPI.lib(CyAPI.obj) Error 2 error LNK2019: unresolved external symbol __imp__SetupDiDestroyDeviceInfoList@4 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ) P:Colibiri - USB 3.0 DebugTestSW_new_driverCyAPI.lib(CyAPI.obj) Error 6 error LNK1120: 4 unresolved externals P:Colibiri - USB 3.0 DebugTestSW_new_driverDebugTestSW.exe How can I work around the problem. This is a blocking problem... |
|
|
|
同样的回答:我认为你必须加上“在库”列表中的图书馆。
以上来自于百度翻译 以下为原文 Same answer: I think you must add "Setupapi.lib" to your list of libraries. |
|
|
|
您使用的是哪个版本的VisualStudio?
你有没有试过编译,来作为suiteu***尝试编译的例子。只要确保你的Visual Studio环境的正确配置。 当做, 阿南德 以上来自于百度翻译 以下为原文 Which version of Visual Studio are you using? Have you tried compiling the examples that come as part of SuiteUSB and tried compiling them. Just make sure your Visual Studio environment is configured properly. Regards, Anand |
|
|
|
我已经完成了,但也有错误5错误LNK2019:未解析的外部符号,在函数中引用的“公共:BooLo.TyCalsCysButo:::C”中引用的未解析的外部符号 以上来自于百度翻译 以下为原文 I have done it,but also Error 5 error LNK2019: unresolved external symbol __imp__SetupDiGetDeviceInterfaceDetailA@24 referenced in function "public: bool __thiscall CCyUSBDevice::C |
|
|
|
只有小组成员才能发言,加入小组>>
740个成员聚集在这个小组
加入小组1980 浏览 1 评论
1742 浏览 1 评论
3514 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1672 浏览 6 评论
1449 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
227浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
134浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
327浏览 2评论
274浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
458浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-23 23:26 , Processed in 0.710917 second(s), Total 57, Slave 50 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191