compilation error when compiling hidtool.c

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
appusajeev
Posts: 1
Joined: Tue Jun 22, 2010 7:46 pm

compilation error when compiling hidtool.c

Post by appusajeev » Tue Jun 22, 2010 7:57 pm

hi...
I installed mingw, copied required libusb binaries into 'include' and 'lib' folder.
I tried compiling powerswitch.c and it compiled just fine...
but when i compile hidtool.c,like

gcc hidtool.c -lhid -lusb -lsetupapi

i get the error
[img=http://img252.imagevenue.com/loc435/th_28132_Capture_122_435lo.JPG]


Please please please someone help me....

frank26080115
Rank 2
Rank 2
Posts: 43
Joined: Fri Jun 19, 2009 4:43 pm

Re: compilation error when compiling hidtool.c

Post by frank26080115 » Wed Jun 23, 2010 9:19 am

a stab in the dark, but it looks like you are executing gcc from the mingw's bin directory, did you copy all of libusb's files to the bin directory? if not then that definitely won't work. You need to execute gcc where your project actually is so the header files included by the .c file can be found by the compiler.

Post Reply