c - 如何在 Espressif IDF Eclipse 项目的不同源文件中包含 FreeRTOS 头文件
问题描述
在 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
. 但是您如何在任何其他源文件中使用这些文件呢?相同的包含将不起作用。
// 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
解决方案
推荐阅读
- angular - 触摸角形复选框
- angular - 添加计时器后,AbstractControl 不包含异步验证错误
- vb.net - 检查对象是否存在于 Visual Basic 中的列表索引处
- java - 使用 compareTo 对一个数组进行升序排序
- if-statement - 如何使用控制结构在 LIPS 上使用 mod 功能
- c# - WPF 特定的 TabItem 宽度行为
- c# - VS Studio / IIS Express 阻止 js 和 css - 但仅在本地驱动器上
- python - 在二维列表中运行 for 循环
- rethinkdb - 在 RethinkDB 中忽略 orderBy 的变音符号?
- c - Bison 的右递归规则问题