求助,ESP32C3编译出现multiple definition of `g_log_level'
Posted: Sat Dec 18, 2021 1:54 am
如题,一个原是ESP32的物联网例程,在改为ESP32C3后,编译出现multiple definition of `g_log_level'不良。
[2/3] Linking CXX executable llsync.elf
FAILED: llsync.elf
cmd.exe /C "cd . && D:\GitSource\GitCMD\ESP\tools\riscv32-esp-elf\esp-2021r1-8.4.0\riscv32-esp-elf\bin\riscv32-esp-elf-g++.exe -march=rv32imc -nostartfiles -march=rv32imc --specs=nosys.specs @CMakeFiles\llsync.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:\temp\qcloud-iot-explorer-BLE-sdk-embedded-demo\qcloud-llsync-config-net-esp32\build/../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:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake --build .”已终止,退出代码: 1。
请帮忙看看,谢谢了
[2/3] Linking CXX executable llsync.elf
FAILED: llsync.elf
cmd.exe /C "cd . && D:\GitSource\GitCMD\ESP\tools\riscv32-esp-elf\esp-2021r1-8.4.0\riscv32-esp-elf\bin\riscv32-esp-elf-g++.exe -march=rv32imc -nostartfiles -march=rv32imc --specs=nosys.specs @CMakeFiles\llsync.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:\temp\qcloud-iot-explorer-BLE-sdk-embedded-demo\qcloud-llsync-config-net-esp32\build/../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:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake --build .”已终止,退出代码: 1。
请帮忙看看,谢谢了