[libhid-discuss] Unable to compile test_libhid.c (Ubuntu x64)
Charles Lepple
clepple at ghz.cc
Fri Jun 4 23:43:30 UTC 2010
On Jun 4, 2010, at 3:21 PM, Pontorez wrote:
> $ gcc -Wall -o result ./test_libhid2.c
You need to tell GCC to link against libhid (plus libusb, since libhid
depends on USB).
The general way to do this is:
gcc -Wall -o result ./test_libhid2.c $(pkg-config --cflags --libs
libhid)
The libhid pkg-config file specifies the libusb dependencies for you.
--
Charles Lepple
More information about the libhid-discuss
mailing list