components包含头文件错误

liuxiewen1314
Posts: 4
Joined: Mon Jun 26, 2023 12:05 pm

components包含头文件错误

Postby liuxiewen1314 » Wed Dec 27, 2023 12:46 pm

你好:
我新建了一个工程,添加了一个BLE组件,现在我在BLE组件的头文件中包含了如下文件

Code: Select all

#include "api/esp_gatt_common_api.h"
并且在CmakeLists.txt中REQUIRES api,现在出现了Failed to resolve component 'api'的错误。
但是我在头文件中同时包含如下文件

Code: Select all

#include "freertos/semphr.h"
并且在CmakeLists.txt中REQUIRES freertos,这个就不会报错。
请问怎么解决上面那个问题呢?并且为什么上面会报错,下面的那个就不会报错呢?
感谢!

Who is online

Users browsing this forum: No registered users and 154 guests