VS2017添加CyAPI.lib报错:error LNK2019
来源:互联网 发布:晚会随机抽奖软件 编辑:程序博客网 时间:2024/05/20 05:24
VS2017添加CyAPI.lib的时候出现error LNK2019提示,如下:
1>CyAPI.lib(CyAPI.obj) : error LNK2019: 无法解析的外部符号 __imp__SetupDiEnumDeviceInterfaces@20,该符号在函数 "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ) 中被引用
1>CyAPI.lib(CyAPI.obj) : error LNK2019: 无法解析的外部符号 __imp__SetupDiGetClassDevsA@16,该符号在函数 "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ) 中被引用
1>CyAPI.lib(CyAPI.obj) : error LNK2019: 无法解析的外部符号 __imp__SetupDiGetDeviceInterfaceDetailA@24,该符号在函数 "public: bool __thiscall CCyUSBDevice::CreateHandle(unsigned char)" (?CreateHandle@CCyUSBDevice@@QAE_NE@Z) 中被引用
1>CyAPI.lib(CyAPI.obj) : error LNK2019: 无法解析的外部符号 _sprintf,该符号在函数 "public: void __thiscall CCyUSBDevice::UsbdStatusString(unsigned long,char *)" (?UsbdStatusString@CCyUSBDevice@@QAEXKPAD@Z) 中被引用
解决方法:
给VS2017添加附加依赖库:下面2个,(SETUPAPI.lib是必须加的)。SetupAPI.lib VS2017比VS2015需要多加个这个库。。。
legacy_stdio_definitions.lib VS2015和VS2017中必须加的 。。
阅读全文
0 0
- VS2017添加CyAPI.lib报错:error LNK2019
- VS2010MFC添加CyAPI.lib
- VS2015添加CyAPI.lib注意事项。
- VS2017添加引用报错
- VS2015 VC报错 error LNK2019
- mfc程序报错libcmt.lib(crt0.obj) : error LNK2019: unresolved external symbol main referenced in function
- Visual Studio编译报错:error LNK2019和error LNK1120
- corelibc.lib(pegwmain.obj) : error LNK2019解决办法
- MSVCRTD.lib(crtexew.obj) error LNK2019错误
- corelibc.lib(pegwmain.obj) : error LNK2019
- MSVCRTD.lib(crtexe.obj) : error LNK2019
- MSVCRTD.lib(crtexe.obj) : error LNK2019
- 添加Lib项目报错:Error:Execution failed for task ':app:processDebugManifest'.解决
- VS2017 .net core web项目 添加引用 报错 vs2017添加引用时报错未能正确加载“ReferenceManagerPackage”包
- VS2017 报错 fatal error RC1015: cannot open include file 'afxres.h'.
- VS2017链接报错:fatal error LNK1318: 非意外的 PDB 错误
- [Resolved] 1>MSVCRTD.lib(crtexe.obj) : error LNK2019
- opencv_highgui.lib(window_w32.obj) : error LNK2019: unresolved external symbol __imp__CreateToolbarE
- Qt-使用窗口部件
- 部署IIS后,Excel遇到的80070005/80080005错误的解决方法
- ROS+SLAM学习日志(4)获取控制与位移信息
- Linux使用中的问题总结
- C复习2
- VS2017添加CyAPI.lib报错:error LNK2019
- Spring Framework下载
- Arduino学习笔记—Arduino编程基础
- linux简单命令
- python接收输入参数和列表pop()方法的使用
- Mysql删除数据库中重复的数据(多字段判断重复)
- 判断一个字符串是否为另外一个字符串旋转之后的字符串。 例如:给定s1 = AABCD和s2 = BCDAA,返回1,给定s1 = abcd和s2 = ACBD,返回0. AABCD左旋一个字
- P2P线上运营如何实现,思维导图告诉你
- 作业