Page 1 of 1

cannot find -lusb error

Posted: Fri Apr 22, 2011 6:13 am
by sreejith6320
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, ;-(

Re: cannot find -lusb error

Posted: Fri Apr 22, 2011 5:19 pm
by serg
You have to install the libusb-1.0 library first and then build your app