Hi

First post, so do be gentle.

I am trying to get libusb to work w/ my compiler and all seems fine until I try something like:

Code:
#include <usb.h>

int main(int argc, char **argv) {
	struct usb_bus *busses;
   	usb_init();
   	usb_find_busses();
   	usb_find_devices();
   	busses = usb_get_busses();
	return 0;
}
I'm on Ubuntu 8.04 (Hardy Heron), and using Eclipse 3.2.2. I can compile other C code just fine (having a great time w/ GTK+). I can see that usb.h is in my `Includes` folder i.e., `/usr/include/usb.h` but I get a bunch of messages when I attempt to compile like:

undefined reference to `usb_init'
I guess it is something to do w/ the Linker as that is where the error gets thrown (see below). But how would I go about resolving that?

Code:
**** Build of configuration Debug for project usb ****

make -k all 
Building file: ../main.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -o"main.o" "../main.c"
Finished building: ../main.c
 
Building target: usb
Invoking: GCC C Linker
gcc  -o"usb"  ./main.o   
./main.o: In function `main':
/home/cbee/c/usb/Debug/../main.c:6: undefined reference to `usb_init'
/home/cbee/c/usb/Debug/../main.c:7: undefined reference to `usb_find_busses'
/home/cbee/c/usb/Debug/../main.c:8: undefined reference to `usb_find_devices'
/home/cbee/c/usb/Debug/../main.c:9: undefined reference to `usb_get_busses'
collect2: ld returned 1 exit status
make: *** [usb] Error 1
make: Target `all' not remade because of errors.
Build complete for project usb