-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Hi,
The changes in commit bb24e1c cause compilation to fail on Debian Wheezy;
kirrus@MrsCake:~/development/ipad_charge$ make
gcc -Wall -Wextra ipad_charge.c -lusb-1.0 -o ipad_charge
ipad_charge.c: In function ‘set_charging_mode’:
ipad_charge.c:38:3: warning: implicit declaration of function ‘libusb_strerror’ [-Wimplicit-function-declaration]
ipad_charge.c:38:3: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat]
ipad_charge.c:44:3: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat]
ipad_charge.c:54:3: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat]
ipad_charge.c: In function ‘main’:
ipad_charge.c:153:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat]
/tmp/cc3F3dOB.o: In function `set_charging_mode':
ipad_charge.c:(.text+0x54): undefined reference to `libusb_strerror'
ipad_charge.c:(.text+0xbc): undefined reference to `libusb_strerror'
ipad_charge.c:(.text+0x152): undefined reference to `libusb_strerror'
/tmp/cc3F3dOB.o: In function `main':
ipad_charge.c:(.text+0x528): undefined reference to `libusb_strerror'
collect2: error: ld returned 1 exit status
make: *** [ipad_charge] Error 1
Building from 3088eba succeeded.
Metadata
Metadata
Assignees
Labels
No labels