I installed libusb using the following command. I'm not sure if it was right or not, and the team was
sudo apt-get install libusb-dev
As soon as I installed (and I'm not sure if it is installed or not, because I'm a beginner user of Ubuntu), I want to know how to use the library because I write example code that uses <libusb.h>, but when I compile this c ++ file with
g++ test_libusb.cpp
which produces the following error,
test_libusb.cpp: 2: 20: fatal error: libusb.h: such a file or directory compiler did not complete.
I do not know what to do. I can not find a source on the Internet to figure this out ...
I want to know two things here:
- How to add libusb library in C / C ++ so that I can use <libusb.h>?
- ? , , libusb...