Linking error with usb.h

closed account (LAMoizwU)
Hi,

I'm trying to read the values passed from a usb port as a joystick.
Everytime I try to call any of the following in VS2005:

usb_init();

usb_find_devices();

struct usb_bus *busses;
busses = usb_get_busses();

I receive a LNK2028 and a LNK2019 error. I use the libusb-Win32 library from sourceforge by the way.

I read it somewhere that it can be fixed by changing "Struct Member Alignment (C++->Code Generation)" to default and "Runtime Library (C++->Code Generation)" to "Multi-threaded" but doing so resulted in a command line error D8016.

Appreciate any help. Thanks =]



BK
Below are the links to the articles regarding the link errors you are getting:

LNK2019: http://msdn.microsoft.com/en-us/library/799kze2z(VS.80).aspx
LNK2028: http://msdn.microsoft.com/en-us/library/ms235590.aspx

Berk Celebisoy
Software Developer - Microsoft Corp.
You are linking the lib, right?
debug or release?
Topic archived. No new replies allowed.