I have a .c file which uses libsub.h. So I have libsub.h and libsub.c in the same folder and lib folder is in the path . ./lib. So when I compile using this command :
gcc read_sub20.c -L../lib/ -lsub -lusb-1.0 -lm -o read_sub20
it is showing this error
/usr/bin/ld: cannot find -lusb-1.0
collect2: ld returned 1 exit status
Any one please help me, ;-(
cannot find -lusb error
Moderator: serg
Re: cannot find -lusb error
You have to install the libusb-1.0 library first and then build your app