以前在4.2 中可以成功编译,现在换到idf 4.4 后 找不到app_main ?
/../riscv32-esp-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(port_common.c.obj): in func
tion `main_task':
H:/Espressif/frameworks/esp-idf-v4.4/components/freertos/port/port_common.c:117: undefined reference to `app_main'
以下是 cmakelists
set(SOURCES ./Src/main.cpp
./Src/ringbufferUart.cpp
./Src/app_tasks.cpp
./Src/md5.cpp
./Src/util.cpp
./Src/app_ble.c
./Src/SI522A_interface.c
./Src/SI522A_App.c
./Src/myspi.c)
idf_component_register(SRCS ${SOURCES}
INCLUDE_DIRS "." "Inc"
REQUIRES freertos esp_common nvs_flash bt)
请问有人可以指点一下吗