esp32自定义组件添加头文件问题

Robert-qiao
Posts: 22
Joined: Tue Aug 31, 2021 8:28 am

esp32自定义组件添加头文件问题

Postby Robert-qiao » Tue Oct 26, 2021 6:30 am

当前我使用的是release V4.3版本,Windows环境,
我自定义一个组件,但是在.h文件中添加部分头文件时,编译通不过,我添加了以下头文件
#include "nvs_flash.h"
#include "esp_bt.h"

#include "esp_gap_ble_api.h"
#include "esp_gatts_api.h"
#include "esp_bt_defs.h"
#include "esp_bt_main.h"
单个添加仍然是报错的:
../components/Robert_BLE/include/Robert_handle.h:4:10: fatal error: nvs_flash.h: No such file or directory
#include "nvs_flash.h"
^~~~~~~~~~~~~
请指教哪里的问题

ESP_morris
Posts: 290
Joined: Wed Sep 05, 2018 6:23 am

Re: esp32自定义组件添加头文件问题

Postby ESP_morris » Tue Oct 26, 2021 8:05 am

文档 https://docs.espressif.com/projects/esp ... quirements 中说明的 REQUIRES 或者 PRIV_REQUIRES 有没有添加对应的模块依赖?

Who is online

Users browsing this forum: No registered users and 84 guests