You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
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
Hi,
The changes in commit bb24e1c cause compilation to fail on Debian Wheezy;
Building from 3088eba succeeded.