新增 .vscode/c_cpp_properties.json 檔案
內容如下:
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/include",
"${workspaceFolder}/include/linux",
"${workspaceFolder}/arch/arm64/include"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
或是
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/include/**",
"${workspaceFolder}/include/linux/**",
"${workspaceFolder}/arch/arm64/include/**",
"${workspaceFolder}/arch/x86/include/**"
],
"defines": [
"__KERNEL__",
"_GNU_SOURCE"
],
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu11",
"cppStandard": "gnu++17",
"intelliSenseMode": "linux-clang-arm64"
}
],
"version": 4
}
沒有留言:
張貼留言