如题,一个原是ESP32的物联网例程,在改为ESP32C3后,编译出现mul
tiple definition of `g_log_level'不良。
[2/3] Linking CXX executable llsync.elf
FAILED: llsync.elf
cmd.exe /C "cd . && D:GitSourceGitCMDESPtoolsriscv32-esp-elfesp-2021r1-8.4.0riscv32-esp-elfbinriscv32-esp-elf-g++.exe -march=rv32imc -nostartfiles -march=rv32imc --specs=nosys.specs @CMakeFilesllsync.elf.rsp -o llsync.elf && cd ."
d:/gitsource/gitcmd/esp/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: D:/GitSource/GitCMD/ESP/esp-idf/components/esp_wifi/lib/esp32c3/libcore.a(misc_nvs.o):(.bss.g_log_level+0x0): multiple definition of `g_log_level'; esp-idf/qcloud_llsync/libqcloud_llsync.a(ble_qiot_utils_log.c.obj):D:tempqcloud-iot-explorer-BLE-sdk-embedded-demoqcloud-llsync-config-net-esp32build/../components/qcloud_llsync/src/utils/ble_qiot_utils_log.c:24: first defined here
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
终端进程“C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -Command cmake --build .”已终止,退出代码: 1。
请帮忙看看,谢谢了