ch2
2021-12-19 15:37:11 +08:00
新建个文件,当前目录下的.vscode/c_cpp_properties.json ,把头文件目录挨个加进来就是了
```
{
"configurations": [
{
"name": "Linux",
"defines": [
"DEBUG",
"_DEBUG",
"_DEBUG_CDB",
"UNICODE",
"_UNICODE",
"_FORTIFY_SOURCE=1",
"CHECK_PTHREAD_RETURN_VALUE",
"_FILE_OFFSET_BITS=64",
"_LARGEFILE64_SOURCE",
"LARGEFILE_SOURCE",
"__cdecl=__attribute__((__cdecl__))"
],
"includePath": [
"${workspaceFolder}/**",
"/usr/include/c++/7",
"/usr/include/x86_64-linux-gnu/c++/7",
"/usr/include/c++/7/backward",
"/usr/lib/gcc/x86_64-linux-gnu/7/include",
"/usr/local/include",
"/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed",
"/usr/include/x86_64-linux-gnu",
"/usr/include"
],
"intelliSenseMode": "gcc-x64",
"browse": {
"path": [
"${workspaceFolder}/**",
"/usr/include/c++/7",
"/usr/include/x86_64-linux-gnu/c++/7",
"/usr/include/c++/7/backward",
"/usr/lib/gcc/x86_64-linux-gnu/7/include",
"/usr/local/include",
"/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed",
"/usr/include/x86_64-linux-gnu",
"/usr/include",
],
"limitSymbolsToIncludedHeaders": false
},
"compilerPath": "/usr/bin/gcc"
}
],
"version": 4
}
```