cannot find -lusb error

All about Sub-20 Multi Interface USB Adapter USB to I2C, SPI, GPIO, RS232, RS485, Ir, LCD

Moderator: serg

Post Reply
sreejith6320
Posts: 12
Joined: Tue Mar 22, 2011 9:46 am

cannot find -lusb error

Post 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, ;-(

serg
Posts: 143
Joined: Mon Aug 31, 2009 9:17 pm

Re: cannot find -lusb error

Post by serg »

You have to install the libusb-1.0 library first and then build your app

Post Reply