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 has been archived by the owner on Dec 19, 2018. It is now read-only.
root@ma-Vostro-1015:/home/ma/AndroidImage/awutils# make
cc -Wall -o awflash awflash.c -lusb
awflash.c: In function ‘fex_xfer’:
awflash.c:140:2: warning: passing argument 1 of ‘usb_bulk_write’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:289:5: note: expected ‘struct usb_dev_handle ’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:142:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat]
awflash.c:147:3: warning: passing argument 1 of ‘usb_bulk_read’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:291:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:149:4: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ [-Wformat]
awflash.c:153:3: warning: passing argument 1 of ‘usb_bulk_write’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:289:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:155:4: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ [-Wformat]
awflash.c:160:2: warning: passing argument 1 of ‘usb_bulk_read’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:291:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c: In function ‘main’:
awflash.c:376:11: warning: assignment from incompatible pointer type [enabled by default]
awflash.c:381:2: warning: passing argument 1 of ‘usb_set_configuration’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:305:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:385:2: warning: passing argument 1 of ‘usb_claim_interface’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:306:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:389:2: warning: passing argument 1 of ‘usb_set_altinterface’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:308:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:394:2: warning: implicit declaration of function ‘aw_get_version’ [-Wimplicit-function-declaration]
awflash.c:415:3: warning: implicit declaration of function ‘fex_write_file’ [-Wimplicit-function-declaration]
awflash.c: At top level:
awflash.c:317:1: warning: ‘aw_fel_get_version’ defined but not used [-Wunused-function]
/tmp/ccsYFvkT.o: In function main': awflash.c:(.text+0xc8c): undefined reference toaw_get_version'
awflash.c:(.text+0xca1): undefined reference to aw_get_version' awflash.c:(.text+0xd2b): undefined reference toaw_get_version'
awflash.c:(.text+0xe5c): undefined reference to fex_write_file' awflash.c:(.text+0xf44): undefined reference tofex_write_file'
collect2: ld returned 1 exit status
make: ** [awflash] Error 1
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
root@ma-Vostro-1015:/home/ma/AndroidImage/awutils# make
cc -Wall -o awflash awflash.c -lusb
awflash.c: In function ‘fex_xfer’:
awflash.c:140:2: warning: passing argument 1 of ‘usb_bulk_write’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:289:5: note: expected ‘struct usb_dev_handle ’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:142:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat]
awflash.c:147:3: warning: passing argument 1 of ‘usb_bulk_read’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:291:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:149:4: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ [-Wformat]
awflash.c:153:3: warning: passing argument 1 of ‘usb_bulk_write’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:289:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:155:4: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ [-Wformat]
awflash.c:160:2: warning: passing argument 1 of ‘usb_bulk_read’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:291:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c: In function ‘main’:
awflash.c:376:11: warning: assignment from incompatible pointer type [enabled by default]
awflash.c:381:2: warning: passing argument 1 of ‘usb_set_configuration’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:305:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:385:2: warning: passing argument 1 of ‘usb_claim_interface’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:306:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:389:2: warning: passing argument 1 of ‘usb_set_altinterface’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:308:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:394:2: warning: implicit declaration of function ‘aw_get_version’ [-Wimplicit-function-declaration]
awflash.c:415:3: warning: implicit declaration of function ‘fex_write_file’ [-Wimplicit-function-declaration]
awflash.c: At top level:
awflash.c:317:1: warning: ‘aw_fel_get_version’ defined but not used [-Wunused-function]
/tmp/ccsYFvkT.o: In function
main': awflash.c:(.text+0xc8c): undefined reference to
aw_get_version'awflash.c:(.text+0xca1): undefined reference to
aw_get_version' awflash.c:(.text+0xd2b): undefined reference to
aw_get_version'awflash.c:(.text+0xe5c): undefined reference to
fex_write_file' awflash.c:(.text+0xf44): undefined reference to
fex_write_file'collect2: ld returned 1 exit status
make: ** [awflash] Error 1
The text was updated successfully, but these errors were encountered: