Public bug reported:
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/lib/i386-linux-gnu -lusb test.c -o test
/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-14ubuntu0.2) builds and run fine.
** Affects: libusb (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/920948
Title:
Can't build simple app with libusb-dev
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libusb/+bug/920948/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs