编译usb_cdc_4g_module工程示例出现找不到函数的错误?紧急!!
Posted: Fri Apr 29, 2022 3:14 am
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c: In function '_usb_get_dev_desc':
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c:703:5: error: implicit declaration of function 'usb_print_device_descriptor'; did you mean 'usb_print_descriptors'? [-Werror=implicit-function-declaration]
usb_print_device_descriptor(dev_desc);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
usb_print_descriptors
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c: In function '_usb_get_config_desc':
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c:754:5: error: implicit declaration of function 'usb_print_config_descriptor'; did you mean 'usb_print_descriptors'? [-Werror=implicit-function-declaration]
usb_print_config_descriptor(cfg_desc, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
usb_print_descriptors
cc1.exe: some warnings being treated as errors
/-----------------------------------------------------------------------------------------------------------------------------------------------------------/
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/uvc_stream/uvc_stream.c: In function '_usb_get_dev_desc':
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/uvc_stream/uvc_stream.c:833:5: error: implicit declaration of function 'usb_print_device_descriptor'; did you mean 'usb_print_descriptors'? [-Werror=implicit-function-declaration]
usb_print_device_descriptor(dev_desc);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
usb_print_descriptors
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/uvc_stream/uvc_stream.c: In function '_usb_get_config_desc':
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/uvc_stream/uvc_stream.c:885:5: error: implicit declaration of function 'usb_print_config_descriptor'; did you mean 'usb_print_descriptors'? [-Werror=implicit-function-declaration]
usb_print_config_descriptor(cfg_desc, _print_uvc_class_descriptors_cb);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
usb_print_descriptors
cc1.exe: some warnings being treated as errors
/-----------------------------------------------------------------------------------------------------------------------------------------------------------/
我在使用IDF-4.4编译esp-iot-solution中的usb_cdc_4g_module示例工程时,出现了如上的错误。找不到usb_print_device_descriptor()和usb_print_device_descriptor()这两个函数的实现方法,请问该如何解决呢?
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c:703:5: error: implicit declaration of function 'usb_print_device_descriptor'; did you mean 'usb_print_descriptors'? [-Werror=implicit-function-declaration]
usb_print_device_descriptor(dev_desc);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
usb_print_descriptors
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c: In function '_usb_get_config_desc':
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/esp_usbh_cdc/esp_usbh_cdc.c:754:5: error: implicit declaration of function 'usb_print_config_descriptor'; did you mean 'usb_print_descriptors'? [-Werror=implicit-function-declaration]
usb_print_config_descriptor(cfg_desc, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
usb_print_descriptors
cc1.exe: some warnings being treated as errors
/-----------------------------------------------------------------------------------------------------------------------------------------------------------/
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/uvc_stream/uvc_stream.c: In function '_usb_get_dev_desc':
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/uvc_stream/uvc_stream.c:833:5: error: implicit declaration of function 'usb_print_device_descriptor'; did you mean 'usb_print_descriptors'? [-Werror=implicit-function-declaration]
usb_print_device_descriptor(dev_desc);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
usb_print_descriptors
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/uvc_stream/uvc_stream.c: In function '_usb_get_config_desc':
D:/esp/esp-iot-solution-usb-add_usb_solutions/components/usb/uvc_stream/uvc_stream.c:885:5: error: implicit declaration of function 'usb_print_config_descriptor'; did you mean 'usb_print_descriptors'? [-Werror=implicit-function-declaration]
usb_print_config_descriptor(cfg_desc, _print_uvc_class_descriptors_cb);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
usb_print_descriptors
cc1.exe: some warnings being treated as errors
/-----------------------------------------------------------------------------------------------------------------------------------------------------------/
我在使用IDF-4.4编译esp-iot-solution中的usb_cdc_4g_module示例工程时,出现了如上的错误。找不到usb_print_device_descriptor()和usb_print_device_descriptor()这两个函数的实现方法,请问该如何解决呢?