Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kirill@RERE-Mint ~/repo/awutils $ make
- cc -Wall -o awflash awflash.c -lusb
- awflash.c:115:10: error: unknown type name ‘libusb_device_handle’
- fex_xfer(libusb_device_handle *hdl, void *buffer, size_t len, uint8_t dir)
- ^
- awflash.c:178:13: error: unknown type name ‘libusb_device_handle’
- fex_command(libusb_device_handle *hdl, uint32_t cmd, uint32_t arg1, uint32_t arg2, uint32_t arg3, void *data, size_t len)
- ^
- awflash.c:315:20: error: unknown type name ‘libusb_device_handle’
- aw_fel_get_version(libusb_device_handle *usb) {
- ^
- awflash.c: In function ‘main’:
- awflash.c:338:2: error: unknown type name ‘libusb_device_handle’
- libusb_device_handle *usb;
- ^
- awflash.c:374:11: warning: assignment from incompatible pointer type [enabled by default]
- if ((usb = locate_device()) == 0) {
- ^
- awflash.c:379:2: warning: passing argument 1 of ‘usb_set_configuration’ from incompatible pointer type [enabled by default]
- open_status = usb_set_configuration(usb,1);
- ^
- In file included from awflash.c:23:0:
- /usr/include/usb.h:314:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘int *’
- int usb_set_configuration(usb_dev_handle *dev, int configuration);
- ^
- awflash.c:383:2: warning: passing argument 1 of ‘usb_claim_interface’ from incompatible pointer type [enabled by default]
- open_status = usb_claim_interface(usb,0);
- ^
- In file included from awflash.c:23:0:
- /usr/include/usb.h:315:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘int *’
- int usb_claim_interface(usb_dev_handle *dev, int interface);
- ^
- awflash.c:387:2: warning: passing argument 1 of ‘usb_set_altinterface’ from incompatible pointer type [enabled by default]
- open_status = usb_set_altinterface(usb,0);
- ^
- In file included from awflash.c:23:0:
- /usr/include/usb.h:317:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘int *’
- int usb_set_altinterface(usb_dev_handle *dev, int alternate);
- ^
- awflash.c:392:2: warning: implicit declaration of function ‘aw_get_version’ [-Wimplicit-function-declaration]
- if (aw_get_version(usb) == 1) {
- ^
- awflash.c:396:3: warning: implicit declaration of function ‘fex_command’ [-Wimplicit-function-declaration]
- if (fex_command(usb, AW_FEL_1_READ, 0x7e00, sizeof(buffer), buffer, sizeof(buffer)) < 0 ||
- ^
- awflash.c:413:3: warning: implicit declaration of function ‘fex_write_file’ [-Wimplicit-function-declaration]
- fex_write_file(0x7220, "fex_1_1.fex", 0xae0);
- ^
- awflash.c:423:20: error: ‘AWL_FEL_1_EXEC’ undeclared (first use in this function)
- fex_command(usb, AWL_FEL_1_EXEC, 0x2000, 0, NULL, 0);
- ^
- awflash.c:423:20: note: each undeclared identifier is reported only once for each function it appears in
- make: *** [awflash] Ошибка 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement