You have to link the right library. If you go to project->options and choose add library ( or something similar, it has been a few years since I used Dev-C ) it should work. The library to add is probably found in where you installed Dev-C under /include. Sorry I seem cryptic but obviously I don't know YOUR system setup. It may be ( for example ) c:/program/Dev-C/mingw32/include... there you'll probably find a file named libusb.o or libusb.a. That's the library to include. Hope this help you at least get started on the search.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is documented somewhere installing libusb in windows is HARD
because it is a LINU/UNI library. I am waiting for the issue to be
clarified before boggling my head with it.
You have to link the right library. If you go to project->options and choose
add library ( or something similar, it has been a few years since I used
Dev-C ) it should work. The library to add is probably found in where you
installed Dev-C under /include. Sorry I seem cryptic but obviously I don't
know YOUR system setup. It may be ( for example )
c:/program/Dev-C/mingw32/include... there you'll probably find a file named
libusb.o or libusb.a. That's the library to include. Hope this help you at
least get started on the search.
i install LibUSB-Win32 and trying basic usb program :
include <stdio.h>
include <usb.h>
include <libusb.h>
int main(void)
{
struct usb_bus busses;
struct usb_bus bus;
}
but i have error messages :
[Linker error] undefined reference to
usb_init' [Linker error] undefined reference to
usb_find_busses'[Linker error] undefined reference to
usb_find_devices' [Linker error] undefined reference to
usb_get_busses'what can i do?
thanks . .
You have to link the right library. If you go to project->options and choose add library ( or something similar, it has been a few years since I used Dev-C ) it should work. The library to add is probably found in where you installed Dev-C under /include. Sorry I seem cryptic but obviously I don't know YOUR system setup. It may be ( for example ) c:/program/Dev-C/mingw32/include... there you'll probably find a file named libusb.o or libusb.a. That's the library to include. Hope this help you at least get started on the search.
It is documented somewhere installing libusb in windows is HARD
because it is a LINU/UNI library. I am waiting for the issue to be
clarified before boggling my head with it.
On 7/6/14, Merak mehrak@users.sf.net wrote:
--
Danilo J Bonsignore