error: expected ‘)‘ before ‘PRIu64‘

在尝试使用CMake编译时遇到了宏未定义的错误。该问题源于<inttypes.h>中宏的定义条件。解决方法是通过在makefile中显式定义__STDC_FORMAT_MACROS宏。这符合ISO C99标准,只有在明确请求时才定义这些宏。添加宏定义后,编译问题应当得到解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题

cmake 编译的时候, 报如标题的错误

查找原因

这个宏是定义在<inttypes.h> 当中的,这个头文件在toolchain当中很多位置都有,如何确定使用的是哪个?

  1. 使用
gcc -v test.cpp 

#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/5
 /usr/include/x86_64-linux-gnu/c++/5
 /usr/include/c++/5/backward
 /usr/lib/gcc/x86_64-linux-gnu/5/include
 /usr/local/include
 /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include

gcc会告诉我们它是在哪个路径下找头文件

紧接着在对应的目录里面找到inttypes.h

  1. 奇怪

/* The ISO C99 standard specifies that these macros must only be
   defined if explicitly requested.  */
#if !defined __cplusplus || defined __STDC_FORMAT_MACROS

# if __WORDSIZE == 64
#  define __PRIu8               "u"
# define PRIu16         "u"
# define PRIu32         "u"
# define PRIu64         __PRI64_PREFIX "u"

在对应的头文件当中,这个宏确实是定义了的,那为什么呢?

这里有一行很重要的注释,看起来是CPP需要这个宏的时候,需要显式的定义__STDC_FORMAT_MACROS,那在我们的makefile里面加上这个宏定义就可以了

/* The ISO C99 standard specifies that these macros must only be
   defined if explicitly requested.  */
#if !defined __cplusplus || defined __STDC_FORMAT_MACROS
.4.1/esp-idf/components/fatfs/src -IE:/espidf/v5.4.1/esp-idf/components/fatfs/vfs -IE:/espidf/v5.4.1/esp-idf/components/idf_test/include -IE:/espidf/v5.4.1/esp-idf/components/idf_test/include/esp32c3 -IE:/espidf/v5.4.1/esp-idf/components/ieee802154/include -IE:/espidf/v5.4.1/esp-idf/components/json/cJSON -IE:/espidf/v5.4.1/esp-idf/components/mqtt/esp-mqtt/include -IE:/espidf/v5.4.1/esp-idf/components/nvs_sec_provider/include -IE:/espidf/v5.4.1/esp-idf/components/rt/include -IE:/espidf/v5.4.1/esp-idf/components/spiffs/include -IE:/espidf/v5.4.1/esp-idf/components/wifi_provisioning/include -march=rv32imc_zicsr_zifencei -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=D:/esp32_C3/internal_communication_client_0.1=. -fmacro-prefix-map=E:/espidf/v5.4.1/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/mesh_broadcast.c.obj -MF esp-idf\main\CMakeFiles\__idf_main.dir\mesh_broadcast.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/mesh_broadcast.c.obj -c D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c In file included from D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:2: D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c: In function 'handle_broadcast_message': D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:141:52: error: 'src_addr' undeclared (first use in this function) 141 | ESP_LOGI(TAG, "閰嶇疆鏇存柊鏉ヨ嚜 %s: %.*s", src_addr, len, message); | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:182:137: note: in definition of macro 'ESP_LOG_LEVEL' 182 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:141:13: note: in expansion of macro 'ESP_LOGI' 141 | ESP_LOGI(TAG, "閰嶇疆鏇存柊鏉ヨ嚜 %s: %.*s", src_addr, len, message); | ^~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:141:52: note: each undeclared identifier is reported only once for each function it appears in 141 | ESP_LOGI(TAG, "閰嶇疆鏇存柊鏉ヨ嚜 %s: %.*s", src_addr, len, message); | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:182:137: note: in definition of macro 'ESP_LOG_LEVEL' 182 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:141:13: note: in expansion of macro 'ESP_LOGI' 141 | ESP_LOGI(TAG, "閰嶇疆鏇存柊鏉ヨ嚜 %s: %.*s", src_addr, len, message); | ^~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:141:62: error: 'len' undeclared (first use in this function) 141 | ESP_LOGI(TAG, "閰嶇疆鏇存柊鏉ヨ嚜 %s: %.*s", src_addr, len, message); | ^~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:182:137: note: in definition of macro 'ESP_LOG_LEVEL' 182 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:141:13: note: in expansion of macro 'ESP_LOGI' 141 | ESP_LOGI(TAG, "閰嶇疆鏇存柊鏉ヨ嚜 %s: %.*s", src_addr, len, message); | ^~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:142:13: error: implicit declaration of function 'update_configuration' [-Wimplicit-function-declaration] 142 | update_configuration(message); | ^~~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:147:22: error: 'msg_type' undeclared (first use in this function) 147 | msg_type, src_addr, len, message); | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:182:137: note: in definition of macro 'ESP_LOG_LEVEL' 182 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW(TAG, "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 %s: %.*s", | ^~~~~~~~ ninja: build stopped: subcommand failed. * 终端进程“e:\espidf\espressif\tools\ninja\1.12.1\ninja.EXE”已终止,退出代码: 1。 * 正在执行任务: e:\espidf\espressif\tools\ninja\1.12.1\ninja.EXE [1/9] Performing build step for 'bootloader' [1/1] C:\Windows\system32\cmd.exe /C "cd /D D:\esp32_C3\internal_communication_client_0.1\build\bootloader\esp-idf\esptool_py && e:\espidf\espressif\python_env\idf5.4_py3.11_env\Scripts\python.exe E:/espidf/v5.4.1/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 D:/esp32_C3/internal_communication_client_0.1/build/bootloader/bootloader.bin" Bootloader binary size 0x5160 bytes. 0x2ea0 bytes (36%) free. [4/9] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/mesh_broadcast.c.obj FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/mesh_broadcast.c.obj ccache E:\espidf\espressif\tools\riscv32-esp-elf\esp-14.2.0_20241119\riscv32-esp-elf\bin\riscv32-esp-elf-gcc.exe -DESP_PLATFORM -DIDF_VER=\"v5.4.1\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DUNITY_INCLUDE_CONFIG_H -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -ID:/esp32_C3/internal_communication_client_0.1/build/config -ID:/esp32_C3/internal_communication_client_0.1/main -ID:/esp32_C3/internal_communication_client_0.1/main/include -IE:/espidf/v5.4.1/esp-idf/components/newlib/platform_include -IE:/espidf/v5.4.1/esp-idf/components/freertos/config/include -IE:/espidf/v5.4.1/esp-idf/components/freertos/config/include/freertos -IE:/espidf/v5.4.1/esp-idf/components/freertos/config/riscv/include -IE:/espidf/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/include -IE:/espidf/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -IE:/espidf/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -IE:/espidf/v5.4.1/esp-idf/components/freertos/esp_additions/include -IE:/espidf/v5.4.1/esp-idf/components/esp_hw_support/include -IE:/espidf/v5.4.1/esp-idf/components/esp_hw_support/include/soc -IE:/espidf/v5.4.1/esp-idf/components/esp_hw_support/include/soc/esp32c3 -IE:/espidf/v5.4.1/esp-idf/components/esp_hw_support/dma/include -IE:/espidf/v5.4.1/esp-idf/components/esp_hw_support/ldo/include -IE:/espidf/v5.4.1/esp-idf/components/esp_hw_support/debug_probe/include -IE:/espidf/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/. -IE:/espidf/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/include -IE:/espidf/v5.4.1/esp-idf/components/heap/include -IE:/espidf/v5.4.1/esp-idf/components/heap/tlsf -IE:/espidf/v5.4.1/esp-idf/components/log/include -IE:/espidf/v5.4.1/esp-idf/components/soc/include -IE:/espidf/v5.4.1/esp-idf/components/soc/esp32c3 -IE:/espidf/v5.4.1/esp-idf/components/soc/esp32c3/include -IE:/espidf/v5.4.1/esp-idf/components/soc/esp32c3/register -IE:/espidf/v5.4.1/esp-idf/components/hal/platform_port/include -IE:/espidf/v5.4.1/esp-idf/components/hal/esp32c3/include -IE:/espidf/v5.4.1/esp-idf/components/hal/include -IE:/espidf/v5.4.1/esp-idf/components/esp_rom/include -IE:/espidf/v5.4.1/esp-idf/components/esp_rom/esp32c3/include -IE:/espidf/v5.4.1/esp-idf/components/esp_rom/esp32c3/include/esp32c3 -IE:/espidf/v5.4.1/esp-idf/components/esp_rom/esp32c3 -IE:/espidf/v5.4.1/esp-idf/components/esp_common/include -IE:/espidf/v5.4.1/esp-idf/components/esp_system/include -IE:/espidf/v5.4.1/esp-idf/components/esp_system/port/soc -IE:/espidf/v5.4.1/esp-idf/components/esp_system/port/include/riscv -IE:/espidf/v5.4.1/esp-idf/components/esp_system/port/include/private -IE:/espidf/v5.4.1/esp-idf/components/riscv/include -IE:/espidf/v5.4.1/esp-idf/components/lwip/include -IE:/espidf/v5.4.1/esp-idf/components/lwip/include/apps -IE:/espidf/v5.4.1/esp-idf/components/lwip/include/apps/sntp -IE:/espidf/v5.4.1/esp-idf/components/lwip/lwip/src/include -IE:/espidf/v5.4.1/esp-idf/components/lwip/port/include -IE:/espidf/v5.4.1/esp-idf/components/lwip/port/freertos/include -IE:/espidf/v5.4.1/esp-idf/components/lwip/port/esp32xx/include -IE:/espidf/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/arch -IE:/espidf/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/sys -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_gpio/include -IE:/espidf/v5.4.1/esp-idf/components/esp_pm/include -IE:/espidf/v5.4.1/esp-idf/components/mbedtls/port/include -IE:/espidf/v5.4.1/esp-idf/components/mbedtls/mbedtls/include -IE:/espidf/v5.4.1/esp-idf/components/mbedtls/mbedtls/library -IE:/espidf/v5.4.1/esp-idf/components/mbedtls/esp_crt_bundle/include -IE:/espidf/v5.4.1/esp-idf/components/mbedtls/mbedtls/3rdparty/everest/include -IE:/espidf/v5.4.1/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m -IE:/espidf/v5.4.1/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m/p256-m -IE:/espidf/v5.4.1/esp-idf/components/esp_app_format/include -IE:/espidf/v5.4.1/esp-idf/components/esp_bootloader_format/include -IE:/espidf/v5.4.1/esp-idf/components/app_update/include -IE:/espidf/v5.4.1/esp-idf/components/bootloader_support/include -IE:/espidf/v5.4.1/esp-idf/components/bootloader_support/bootloader_flash/include -IE:/espidf/v5.4.1/esp-idf/components/esp_partition/include -IE:/espidf/v5.4.1/esp-idf/components/efuse/include -IE:/espidf/v5.4.1/esp-idf/components/efuse/esp32c3/include -IE:/espidf/v5.4.1/esp-idf/components/esp_mm/include -IE:/espidf/v5.4.1/esp-idf/components/spi_flash/include -IE:/espidf/v5.4.1/esp-idf/components/esp_security/include -IE:/espidf/v5.4.1/esp-idf/components/pthread/include -IE:/espidf/v5.4.1/esp-idf/components/esp_timer/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_gptimer/include -IE:/espidf/v5.4.1/esp-idf/components/esp_ringbuf/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_uart/include -IE:/espidf/v5.4.1/esp-idf/components/vfs/include -IE:/espidf/v5.4.1/esp-idf/components/app_trace/include -IE:/espidf/v5.4.1/esp-idf/components/esp_event/include -IE:/espidf/v5.4.1/esp-idf/components/nvs_flash/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_pcnt/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_spi/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_mcpwm/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_ana_cmpr/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_i2s/include -IE:/espidf/v5.4.1/esp-idf/components/sdmmc/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_sdmmc/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_sdspi/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_sdio/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_dac/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_rmt/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_tsens/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_sdm/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_i2c/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_ledc/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_parlio/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_usb_serial_jtag/include -IE:/espidf/v5.4.1/esp-idf/components/driver/deprecated -IE:/espidf/v5.4.1/esp-idf/components/driver/i2c/include -IE:/espidf/v5.4.1/esp-idf/components/driver/touch_sensor/include -IE:/espidf/v5.4.1/esp-idf/components/driver/twai/include -IE:/espidf/v5.4.1/esp-idf/components/esp_phy/include -IE:/espidf/v5.4.1/esp-idf/components/esp_phy/esp32c3/include -IE:/espidf/v5.4.1/esp-idf/components/esp_vfs_console/include -IE:/espidf/v5.4.1/esp-idf/components/esp_netif/include -IE:/espidf/v5.4.1/esp-idf/components/wpa_supplicant/include -IE:/espidf/v5.4.1/esp-idf/components/wpa_supplicant/port/include -IE:/espidf/v5.4.1/esp-idf/components/wpa_supplicant/esp_supplicant/include -IE:/espidf/v5.4.1/esp-idf/components/esp_coex/include -IE:/espidf/v5.4.1/esp-idf/components/esp_wifi/include -IE:/espidf/v5.4.1/esp-idf/components/esp_wifi/include/local -IE:/espidf/v5.4.1/esp-idf/components/esp_wifi/wifi_apps/include -IE:/espidf/v5.4.1/esp-idf/components/esp_wifi/wifi_apps/nan_app/include -IE:/espidf/v5.4.1/esp-idf/components/unity/include -IE:/espidf/v5.4.1/esp-idf/components/unity/unity/src -IE:/espidf/v5.4.1/esp-idf/components/cmock/CMock/src -IE:/espidf/v5.4.1/esp-idf/components/console -IE:/espidf/v5.4.1/esp-idf/components/http_parser -IE:/espidf/v5.4.1/esp-idf/components/esp-tls -IE:/espidf/v5.4.1/esp-idf/components/esp-tls/esp-tls-crypto -IE:/espidf/v5.4.1/esp-idf/components/esp_adc/include -IE:/espidf/v5.4.1/esp-idf/components/esp_adc/interface -IE:/espidf/v5.4.1/esp-idf/components/esp_adc/esp32c3/include -IE:/espidf/v5.4.1/esp-idf/components/esp_adc/deprecated/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_isp/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_cam/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_cam/interface -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_jpeg/include -IE:/espidf/v5.4.1/esp-idf/components/esp_driver_ppa/include -IE:/espidf/v5.4.1/esp-idf/components/esp_eth/include -IE:/espidf/v5.4.1/esp-idf/components/esp_gdbstub/include -IE:/espidf/v5.4.1/esp-idf/components/esp_hid/include -IE:/espidf/v5.4.1/esp-idf/components/tcp_transport/include -IE:/espidf/v5.4.1/esp-idf/components/esp_http_client/include -IE:/espidf/v5.4.1/esp-idf/components/esp_http_server/include -IE:/espidf/v5.4.1/esp-idf/components/esp_https_ota/include -IE:/espidf/v5.4.1/esp-idf/components/esp_https_server/include -IE:/espidf/v5.4.1/esp-idf/components/esp_psram/include -IE:/espidf/v5.4.1/esp-idf/components/esp_lcd/include -IE:/espidf/v5.4.1/esp-idf/components/esp_lcd/interface -IE:/espidf/v5.4.1/esp-idf/components/protobuf-c/protobuf-c -IE:/espidf/v5.4.1/esp-idf/components/protocomm/include/common -IE:/espidf/v5.4.1/esp-idf/components/protocomm/include/security -IE:/espidf/v5.4.1/esp-idf/components/protocomm/include/transports -IE:/espidf/v5.4.1/esp-idf/components/protocomm/include/crypto/srp6a -IE:/espidf/v5.4.1/esp-idf/components/protocomm/proto-c -IE:/espidf/v5.4.1/esp-idf/components/esp_local_ctrl/include -IE:/espidf/v5.4.1/esp-idf/components/espcoredump/include -IE:/espidf/v5.4.1/esp-idf/components/espcoredump/include/port/riscv -IE:/espidf/v5.4.1/esp-idf/components/wear_levelling/include -IE:/espidf/v5.4.1/esp-idf/components/fatfs/diskio -IE:/espidf/v5.4.1/esp-idf/components/fatfs/src -IE:/espidf/v5.4.1/esp-idf/components/fatfs/vfs -IE:/espidf/v5.4.1/esp-idf/components/idf_test/include -IE:/espidf/v5.4.1/esp-idf/components/idf_test/include/esp32c3 -IE:/espidf/v5.4.1/esp-idf/components/ieee802154/include -IE:/espidf/v5.4.1/esp-idf/components/json/cJSON -IE:/espidf/v5.4.1/esp-idf/components/mqtt/esp-mqtt/include -IE:/espidf/v5.4.1/esp-idf/components/nvs_sec_provider/include -IE:/espidf/v5.4.1/esp-idf/components/rt/include -IE:/espidf/v5.4.1/esp-idf/components/spiffs/include -IE:/espidf/v5.4.1/esp-idf/components/wifi_provisioning/include -march=rv32imc_zicsr_zifencei -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=D:/esp32_C3/internal_communication_client_0.1=. -fmacro-prefix-map=E:/espidf/v5.4.1/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/mesh_broadcast.c.obj -MF esp-idf\main\CMakeFiles\__idf_main.dir\mesh_broadcast.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/mesh_broadcast.c.obj -c D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c: In function 'handle_broadcast_message': D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:141:13: error: implicit declaration of function 'log_received_message' [-Wimplicit-function-declaration] 141 | log_received_message("鎺у埗鍛戒护", from, message, len); | ^~~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:141:61: error: 'len' undeclared (first use in this function) 141 | log_received_message("鎺у埗鍛戒护", from, message, len); | ^~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:141:61: note: each undeclared identifier is reported only once for each function it appears in D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:142:13: error: implicit declaration of function 'process_control_command' [-Wimplicit-function-declaration] 142 | process_control_command(message); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:2: D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:62: error: expected ')' before 'MACSTR' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:88: note: in definition of macro 'LOG_FORMAT' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:182:60: note: to match this '(' 182 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ In file included from E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:15: E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:98:31: error: format '%lu' expects a matching 'long unsigned int' argument [-Werror=format=] 98 | #define LOG_COLOR_E "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_E' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:182:86: note: in expansion of macro 'LOG_FORMAT' 182 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:98:31: error: format '%s' expects a matching 'char *' argument [-Werror=format=] 98 | #define LOG_COLOR_E "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_E' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:182:86: note: in expansion of macro 'LOG_FORMAT' 182 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:98:31: error: format '%d' expects a matching 'int' argument [-Werror=format=] 98 | #define LOG_COLOR_E "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_E' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:182:86: note: in expansion of macro 'LOG_FORMAT' 182 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:62: error: expected ')' before 'MACSTR' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:88: note: in definition of macro 'LOG_FORMAT' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:183:60: note: to match this '(' 183 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:99:31: error: format '%lu' expects a matching 'long unsigned int' argument [-Werror=format=] 99 | #define LOG_COLOR_W "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_W' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:183:86: note: in expansion of macro 'LOG_FORMAT' 183 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:99:31: error: format '%s' expects a matching 'char *' argument [-Werror=format=] 99 | #define LOG_COLOR_W "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_W' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:183:86: note: in expansion of macro 'LOG_FORMAT' 183 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:99:31: error: format '%d' expects a matching 'int' argument [-Werror=format=] 99 | #define LOG_COLOR_W "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_W' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:183:86: note: in expansion of macro 'LOG_FORMAT' 183 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:62: error: expected ')' before 'MACSTR' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:88: note: in definition of macro 'LOG_FORMAT' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:184:60: note: to match this '(' 184 | else if (level==ESP_LOG_DEBUG ) { esp_log_write(ESP_LOG_DEBUG, tag, LOG_FORMAT(D, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:101:31: error: format '%lu' expects a matching 'long unsigned int' argument [-Werror=format=] 101 | #define LOG_COLOR_D "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_D' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:184:86: note: in expansion of macro 'LOG_FORMAT' 184 | else if (level==ESP_LOG_DEBUG ) { esp_log_write(ESP_LOG_DEBUG, tag, LOG_FORMAT(D, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:101:31: error: format '%s' expects a matching 'char *' argument [-Werror=format=] 101 | #define LOG_COLOR_D "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_D' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:184:86: note: in expansion of macro 'LOG_FORMAT' 184 | else if (level==ESP_LOG_DEBUG ) { esp_log_write(ESP_LOG_DEBUG, tag, LOG_FORMAT(D, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:101:31: error: format '%d' expects a matching 'int' argument [-Werror=format=] 101 | #define LOG_COLOR_D "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_D' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:184:86: note: in expansion of macro 'LOG_FORMAT' 184 | else if (level==ESP_LOG_DEBUG ) { esp_log_write(ESP_LOG_DEBUG, tag, LOG_FORMAT(D, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:62: error: expected ')' before 'MACSTR' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:88: note: in definition of macro 'LOG_FORMAT' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:185:60: note: to match this '(' 185 | else if (level==ESP_LOG_VERBOSE ) { esp_log_write(ESP_LOG_VERBOSE, tag, LOG_FORMAT(V, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:102:31: error: format '%lu' expects a matching 'long unsigned int' argument [-Werror=format=] 102 | #define LOG_COLOR_V "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_V' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:185:86: note: in expansion of macro 'LOG_FORMAT' 185 | else if (level==ESP_LOG_VERBOSE ) { esp_log_write(ESP_LOG_VERBOSE, tag, LOG_FORMAT(V, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:102:31: error: format '%s' expects a matching 'char *' argument [-Werror=format=] 102 | #define LOG_COLOR_V "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_V' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:185:86: note: in expansion of macro 'LOG_FORMAT' 185 | else if (level==ESP_LOG_VERBOSE ) { esp_log_write(ESP_LOG_VERBOSE, tag, LOG_FORMAT(V, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:102:31: error: format '%d' expects a matching 'int' argument [-Werror=format=] 102 | #define LOG_COLOR_V "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_V' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:185:86: note: in expansion of macro 'LOG_FORMAT' 185 | else if (level==ESP_LOG_VERBOSE ) { esp_log_write(ESP_LOG_VERBOSE, tag, LOG_FORMAT(V, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:62: error: expected ')' before 'MACSTR' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:88: note: in definition of macro 'LOG_FORMAT' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:186:60: note: to match this '(' 186 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:100:31: error: format '%lu' expects a matching 'long unsigned int' argument [-Werror=format=] 100 | #define LOG_COLOR_I "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_I' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:186:86: note: in expansion of macro 'LOG_FORMAT' 186 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:100:31: error: format '%s' expects a matching 'char *' argument [-Werror=format=] 100 | #define LOG_COLOR_I "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_I' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:186:86: note: in expansion of macro 'LOG_FORMAT' 186 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log_color.h:100:31: error: format '%d' expects a matching 'int' argument [-Werror=format=] 100 | #define LOG_COLOR_I "" | ^~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_I' 62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:186:86: note: in expansion of macro 'LOG_FORMAT' 186 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ E:/espidf/v5.4.1/esp-idf/components/log/include/esp_log.h:113:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 113 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/esp32_C3/internal_communication_client_0.1/main/mesh_broadcast.c:146:13: note: in expansion of macro 'ESP_LOGW' 146 | ESP_LOGW("BROADCAST_RX", "鏈煡骞挎挱绫诲瀷 %d 鏉ヨ嚜 " MACSTR, | ^~~~~~~~ cc1.exe: some warnings being treated as errors ninja: build stopped: subcommand failed. * 终端进程“e:\espidf\espressif\tools\ninja\1.12.1\ninja.EXE”已终止,退出代码: 1。
06-28
OS-Kernel/include/freertos/portable.h:59, from D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/freertos/FreeRTOS-Kernel/include/freertos/FreeRTOS.h:71, from D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.h:4, from D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:1: D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:141:58: error: expected ')' before numeric constant 141 | #define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ ) | ^~~~ D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:6:7: note: in expansion of macro 'portTICK_PERIOD_MS' 6 | float portTICK_PERIOD_MS = 1.0f; // 榛樿鍊硷紝瀹為檯浣跨敤鍓嶅簲鏍″噯 | ^~~~~~~~~~~~~~~~~~ D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c: In function 'timer_calibrate': D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:19:24: error: lvalue required as left operand of assignment 19 | portTICK_PERIOD_MS = (real_duration_us / 1000.0f) / elapsed_ticks; | ^ In file included from D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:2: D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:265:27: warning: format '%f' expects argument of type 'double', but argument 6 has type 'long unsigned int' [-Wformat=] 265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m" | ^~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:268:27: note: in expansion of macro 'LOG_COLOR' 268 | #define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED) | ^~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_E' 282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:410:86: note: in expansion of macro 'LOG_FORMAT' 410 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL' 432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:5: note: in expansion of macro 'ESP_LOGI' 20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS); | ^~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:265:27: warning: format '%f' expects argument of type 'double', but argument 6 has type 'long unsigned int' [-Wformat=] 265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m" | ^~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:269:27: note: in expansion of macro 'LOG_COLOR' 269 | #define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN) | ^~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_W' 282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:411:86: note: in expansion of macro 'LOG_FORMAT' 411 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL' 432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:5: note: in expansion of macro 'ESP_LOGI' 20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS); | ^~~~~~~~ D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:1: warning: format '%f' expects argument of type 'double', but argument 6 has type 'long unsigned int' [-Wformat=] 20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS); | ^ ~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT' 282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL' 432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:5: note: in expansion of macro 'ESP_LOGI' 20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS); | ^~~~~~~~ D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:1: warning: format '%f' expects argument of type 'double', but argument 6 has type 'long unsigned int' [-Wformat=] 20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS); | ^ ~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT' 282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL' 432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:5: note: in expansion of macro 'ESP_LOGI' 20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS); | ^~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:265:27: warning: format '%f' expects argument of type 'double', but argument 6 has type 'long unsigned int' [-Wformat=] 265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m" | ^~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:270:27: note: in expansion of macro 'LOG_COLOR' 270 | #define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN) | ^~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_I' 282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:414:86: note: in expansion of macro 'LOG_FORMAT' 414 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \ | ^~~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL' 432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~ D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~ D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:5: note: in expansion of macro 'ESP_LOGI' 20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS); | ^~~~~~~~ ninja: build stopped: subcommand failed. * 终端进程“d:\CxhData\EspData\.espressif\tools\ninja\1.12.1\ninja.EXE”已终止,退出代码: 1。
07-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值