Thanks for you help. Actually my problem was I did not know how to include the library.
I found that adding the lines
When Libraries
GCC usb
GCC stdc++
in the package organizer solved my problem. I have a new problem though. I am trying to make a combined windows/linux program using the libusb library. The problem is windows requires the libusb.lib library, and linux the usb lib. This means I need to have something like
When Libaries
Windows libusb.lib
linux usb
The problem is both I use the GCC compiler on both linux and windows machines. Is there a way to use the "when" in this configuration?