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

_______________________________________________
libhid-discuss mailing list
libhid-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
http://libhid.alioth.debian.org/

Reply via email to