问题描述
在Eclipse中创建ESPRESSIF项目后,我发现main
中已经包含以下内容。
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_syst"
#include "esp_wifi.h"
#include "esp_event.h"
#include "esp_log.h"
#include "nvs_flash.h"
#include "lwip/sockets.h"
我猜所包含的文件由IDF_PATH
中定义的路径引用。但是,如何在其他任何源文件中使用这些文件呢?相同的include无效。
// file1.c
#include "lwip/sockets.h" // Unresolved inclusion: "lwip/sockets.h"
下面是属性的快照。由于某种原因,我没有看到C/C++ build
部分,否则我知道可以将文件路径放在其中,然后可以由任何源文件使用,而无需指定相对路径。
供参考:我遵循了本教程-> https://github.com/espressif/idf-eclipse-plugin/blob/master/README.md#create-a-new-project直到Compiling the Project
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)