example software host application compiler problem
Posted: Sat Oct 16, 2010 2:31 pm
Hi all,
I have trouble compiling the host software on a 64 bit Windows 7 system.
I downloaded MinGW installer package and installed it, I had to manualy add the path variable to be able to compile from a Programmers Notepad project. No problem there ...
Then i received messages about not being able to find the usb.h file from the libusb-win32 download so I copied the header file from the ../include directory in to the ../commandline directory and changed the include statement from <usb.h> to "usb.h".
When I try to compile I get:
What am I doing wrong? Thanks for any input.
Koen.
I have trouble compiling the host software on a 64 bit Windows 7 system.
I downloaded MinGW installer package and installed it, I had to manualy add the path variable to be able to compile from a Programmers Notepad project. No problem there ...
Then i received messages about not being able to find the usb.h file from the libusb-win32 download so I copied the header file from the ../include directory in to the ../commandline directory and changed the include statement from <usb.h> to "usb.h".
When I try to compile I get:
Code: Select all
> "make.exe" -f Makefile.windows
gcc -o set-led.exe opendevice.o set-led.o -L/MinGW/lib/libusb
opendevice.o: In function `usbGetStringAscii':
..\custom-class\commandline/opendevice.c:91: undefined reference to `usb_get_string_simple'
..\custom-class\commandline/opendevice.c:93: undefined reference to `usb_control_msg'
opendevice.o: In function `usbOpenDevice':
..\custom-class\commandline/opendevice.c:123: undefined reference to `usb_find_busses'
..\custom-class\commandline/opendevice.c:124: undefined reference to `usb_find_devices'
..\custom-class\commandline/opendevice.c:125: undefined reference to `usb_get_busses'
..\custom-class\commandline/opendevice.c:131: undefined reference to `usb_open'
..\custom-class\commandline/opendevice.c:135: undefined reference to `usb_strerror'
..\custom-class\commandline/opendevice.c:146: undefined reference to `usb_strerror'
..\custom-class\commandline/opendevice.c:158: undefined reference to `usb_strerror'
..\custom-class\commandline/opendevice.c:170: undefined reference to `usb_strerror'
..\custom-class\commandline/opendevice.c:187: undefined reference to `usb_close'
set-led.o: In function `main':
..\custom-class\commandline/set-led.c:49: undefined reference to `usb_init'
..\custom-class\commandline/set-led.c:88: undefined reference to `usb_control_msg'
..\custom-class\commandline/set-led.c:91: undefined reference to `usb_strerror'
..\custom-class\commandline/set-led.c:99: undefined reference to `usb_control_msg'
..\custom-class\commandline/set-led.c:101: undefined reference to `usb_strerror'
..\custom-class\commandline/set-led.c:136: undefined reference to `usb_close'
collect2: ld returned 1 exit status
What am I doing wrong? Thanks for any input.
Koen.