diff options
Diffstat (limited to 'examples/xusb.c')
-rw-r--r-- | examples/xusb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/xusb.c b/examples/xusb.c index ee98613..4f06151 100644 --- a/examples/xusb.c +++ b/examples/xusb.c @@ -32,9 +32,11 @@ #include <libusb/libusb.h> #if defined(_MSC_VER) -// The libusb library has a dependency on the setupapi and ole32 libs +// On Windows, the libusb library has a dependency on the libraries below. +// for MinGW/cygwin, make sure you link with -lsetupapi -lole32 -ladvapi32 #pragma comment( lib, "setupapi.lib" ) #pragma comment( lib, "ole32.lib" ) +#pragma comment( lib, "advapi32.lib" ) #endif #ifdef OS_WINDOWS |