未解析的符号HidD_GetAttributes() [英] Unresolved symbol HidD_GetAttributes()

查看:793
本文介绍了未解析的符号HidD_GetAttributes()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在开发用于连接USB设备的应用程序.编译代码时,出现以下错误.我已包含"hidsdi.h","hid.lib"已下载并粘贴到本地目录中.

Hi,

I am developing an application for interfacing a USB device. When I compile my code I get the following errors. I had included "hidsdi.h" and "hid.lib" is downloaded and pasted in the local directory.

error LNK2019: unresolved external symbol _HidD_GetAttributes@8 referenced in function _main
error LNK2019: unresolved external symbol _HidD_GetHidGuid@4 referenced in function _connectToUSBDevice



谁能帮我解决这个错误.

问候
Mohan



Can anyone help me with this bug.

Regards
Mohan

推荐答案

在本地目录中粘贴hid.lib文件是不够的.您需要将hid.lib添加到链接输入中.
Pasting the hid.lib file in the local directory is not enough. You need to add the hid.lib to the link input.


这篇关于未解析的符号HidD_GetAttributes()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆