Can't build simple app with libusb-dev
Bug #920948 reported by
mariodebian
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libusb (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In Ubuntu Precise (12.04) can build this simple app:
#include <stdio.h>
#include <usb.h>
int main(){
usb_init();
printf("Hello world!\n");
return 0;
}
$ gcc -Wall -lusb test.c -o test
/tmp/ccPHsjM4.o: In function `main':
test.c:(.text+0xa): undefined reference to `usb_init'
collect2: ld returned 1 exit status
$ gcc -Wall -L/usr/
/tmp/cc7e0ElV.o: In function `main':
test.c:(.text+0xa): undefined reference to `usb_init'
collect2: ld returned 1 exit status
In Debian unstable ( libusb-dev 2:0.1.12-20) builds and run fine.
In Ubuntu Lucid 10.04 (libusb-dev 2:0.1.12-
To post a comment you must log in.
Have you tried using libusb-1.0.0-dev , libusb.h and libusb_init() ?