调用HidD_GetAttributes,HidD_GetAttributes函数时link出错,小弟我已经加了setupapi.lib和hid.lib库文件
调用HidD_GetAttributes,HidD_GetAttributes函数时link出错,我已经加了setupapi.lib和hid.lib库文件
调用HidD_GetAttributes,HidD_GetAttributes函数时link出错,我已经加了setupapi.lib和hid.lib库文件
用vc++编一个USB通信的程序,很要命的程序,对我来说,现在在LINK的时候一直有这个错误
compiling...
usbportdlg.cpp
linking...
usbportdlg.obj : error lnk2001: unresolved external symbol "unsigned char __stdcall hidd_getattributes(void *,struct _hidd_attributes *)" (?hidd_getattributes@@ygepaxpau_hidd_attributes@@@z)
usbportdlg.obj : error lnk2001: unresolved external symbol "void __stdcall hidd_gethidguid(struct _guid *)" (?hidd_gethidguid@@ygxpau_guid@@@z)
debug/usbport.exe : fatal error lnk1120: 2 unresolved externals
error executing link.exe.
usbport.exe - 3 error(s), 0 warning(s)
那位大侠能帮帮忙指点一下呢?
------解决方案--------------------
查下对应的这几个函数是否是在你说的lib里面...并且是否正的加了链接lib的命令...
------解决方案--------------------
Extend试下!
调用HidD_GetAttributes,HidD_GetAttributes函数时link出错,我已经加了setupapi.lib和hid.lib库文件
用vc++编一个USB通信的程序,很要命的程序,对我来说,现在在LINK的时候一直有这个错误
compiling...
usbportdlg.cpp
linking...
usbportdlg.obj : error lnk2001: unresolved external symbol "unsigned char __stdcall hidd_getattributes(void *,struct _hidd_attributes *)" (?hidd_getattributes@@ygepaxpau_hidd_attributes@@@z)
usbportdlg.obj : error lnk2001: unresolved external symbol "void __stdcall hidd_gethidguid(struct _guid *)" (?hidd_gethidguid@@ygxpau_guid@@@z)
debug/usbport.exe : fatal error lnk1120: 2 unresolved externals
error executing link.exe.
usbport.exe - 3 error(s), 0 warning(s)
那位大侠能帮帮忙指点一下呢?
------解决方案--------------------
查下对应的这几个函数是否是在你说的lib里面...并且是否正的加了链接lib的命令...
------解决方案--------------------
Extend试下!