[libhid-discuss] how to build test_libhid.c

Peter Stuge peter at stuge.se
Wed Sep 29 23:13:19 UTC 2010


Tristan Sun wrote:
> I am new in Linux. I need use libhid,

Why? You could also take a look at HIDAPI for your HID communication
needs.



> [root at localhost hh]# gcc test_libhid.c -I/usr/local/include -L/usr/local/lib  -lusb

You are linking with libusb (not libusb-1.0) but you are not linking
with libhid. Of course it will not work. Try adding -lhid but look at
HIDAPI too.


//Peter



More information about the libhid-discuss mailing list