E
eeh
I tried to compile my test.c file in Cygwin by GCC.
My makefile is listed:
USBCFG = /home/a/libusb-config
all: test
..c.o:
cc -O -Wall `$(USBCFG) --cflags` -c $<
test: test.o
cc -o test test.o `$(USBCFG) --libs libusb.a`
clean:
rm *.o
rm test
But the following compilation errors appear. It seems that the library
file cannot be linked. Anyone knows what happens? I have put the
libusb.a library file under the same directory with the test.c file.
...... undefined reference to '_usb_init'
...... undefined reference to '_usb_find_busses'
:
:
My makefile is listed:
USBCFG = /home/a/libusb-config
all: test
..c.o:
cc -O -Wall `$(USBCFG) --cflags` -c $<
test: test.o
cc -o test test.o `$(USBCFG) --libs libusb.a`
clean:
rm *.o
rm test
But the following compilation errors appear. It seems that the library
file cannot be linked. Anyone knows what happens? I have put the
libusb.a library file under the same directory with the test.c file.
...... undefined reference to '_usb_init'
...... undefined reference to '_usb_find_busses'
:
: