aliyun的例程编译错误

sgx-123
Posts: 1
Joined: Tue Feb 14, 2023 2:21 am

aliyun的例程编译错误

Postby sgx-123 » Tue Feb 14, 2023 2:41 am

## 1. 开发环境

- 模组或开发板:esp32s2
- 开发环境:Espressif-IDE 版本:2.8.1

## 2. 问题描述
我从github上下载的esp-aliyun-master,然后将里面的examples复制到了官方SDK里的examples,导入工程后出现编译错误如下,附截图
d:/espressif/tools/xtensa-esp32s2-elf/esp-2022r1-11.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/11.2.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(port_common.c.obj):(.literal.main_task+0x10): undefined reference to `app_main'
d:/espressif/tools/xtensa-esp32s2-elf/esp-2022r1-11.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/11.2.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(port_common.c.obj): in function `main_task':
D:/Espressif/frameworks/esp-idf-v5.0/components/freertos/FreeRTOS-Kernel/portable/port_common.c:128: undefined reference to `app_main'
请问下这个问题应该如何解决呢?非常感谢!
Attachments
Snipaste_2023-02-14_10-39-01.png
报错内容
Snipaste_2023-02-14_10-39-01.png (28.13 KiB) Viewed 1856 times
Snipaste_2023-02-14_10-34-04.png
复制路径
Snipaste_2023-02-14_10-34-04.png (51.93 KiB) Viewed 1856 times

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: aliyun的例程编译错误

Postby ESP_YJM » Thu Feb 16, 2023 4:05 am

建议你直接在 aliyun 工程自带的示例下面进行编译。

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 80 guests