OpenHarmony开发者论坛
标题:
头文件下面有波浪线,不知道怎么才能去掉
[打印本页]
作者:
zhqi
时间:
2024-1-5 12:54
标题:
头文件下面有波浪线,不知道怎么才能去掉
(, 下载次数: 7)
上传
点击文件名下载附件
作者:
dragon
时间:
2024-1-5 18:30
标题:
头文件下面有波浪线,不知道怎么才能去掉
这个要把相关头文件所在的路径,添加到 .vscode\c_cpp_properties.json 文件中。
以OpenHarmony3.0LTS为例:
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
".",
"${workspaceFolder}/utils/native/lite/include",
"${workspaceFolder}/device/hisilicon/hispark_pegasus/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include",
// --CMSIS-RTOS2接口--
"${workspaceFolder}/kernel/liteos_m/kal",
"${workspaceFolder}/kernel/liteos_m/kal/cmsis",
"${workspaceFolder}/device/hisilicon/hispark_pegasus/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/arch/riscv32",
// --HAL(硬件抽象层)接口--
"${workspaceFolder}/base/iot_hardware/peripheral/interfaces/kits",
复制代码
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5