"undefined reference to app_main'" 是一个链接错误,表示链接器在尝试将各个编译单元(如 .o文件)链接成最终的可执行文件或库时,找不到app_main 函数的定义。在 ESP-IDF 框架中,app_main是应用程序的入口点,类似于标准 C 程序中的main` 函数。 2. 常见原因及解决方法 原因一:app_main 函数未定义 解决方法...
根据您提供的信息,编译错误提示 "undefined reference to `app_main`" 是因为在链接过程中,链接器找不到 `app_main` 函数的定义。这通常是因为以下几个原因: 1. 确保 `app_main` 函数在您的代码中已经定义。从您提供的 `main.c` 内容来看,`app_main` 函数的定义似乎不完整。您需要确保 `app_main` 函数...
编译错误提示undefined reference to app_main的原因? 2024-06-25 220 在esp-idf-v4.4 SDK上编译ESP32C3会在libphy.a提示undefined reference to `rom_temp_to_power'的错误的原因? 2023-03-07 237 在esp-idf-v4.4 SDK上编译ESP32C3会在libphy.a提示undefined reference to `rom_temp_to_power&...
编译错误提示undefined reference to app_mainby frank_he » Tue May 12, 2020 8:45 am 开始准备将已有项目porting到esp32,采用v4.0 的esp-idf。 但是在编译的时候遇到以下问题 build/esp32/libesp32.a(cpu_start.o): in function `main_task': /home/fhe/esp/esp-idf/components/esp32/cpu_start.c...
And in main/myproj.cpp: Code: Select all extern "C" void app_main(void) { ... } striderheng Posts: 1 Joined: Thu Mar 25, 2021 11:08 am Re: undefined reference to `app_main'by striderheng » Tue Oct 01, 2024 7:36 am If you check here, https://docs.espressif.com/projects...
I noticed that on newer esp-idf versions, the reference to 'app_main' only works when the main folder of the project is named "main". Had it already twice, I think both times with an esp32S3. Lost a lot of time but now I have already changed it in all my projects, even some...
/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/freertos/libfreertos.a(port_common.c.obj):(.literal.main_task+0x14): undefined reference to `app_main' /home/rehu/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp...
undefined reference toapp_main' OR undefined reference tosetup'#3671 TLINDENopened this issueJan 25, 2020· 4 comments Copy link TLINDENcommentedJan 25, 2020• edited Hardware: Board: Lolin esp32 Core Installation version: n/a IDE name: emacs ...
/home/linux/esp32/esp-idf/examples/get-started/ESP32_RC522/build/esp32/libesp32.a(cpu_start.o):(.literal.main_task+0x18): undefined reference toapp_main' /home/linux/esp32/esp-idf/examples/get-started/ESP32_RC522/build/esp32/libesp32.a(cpu_start.o): In functionmain_task': ...
2种可能 1)没有定义mian函数。 int main( )2) main 拼写错误