vscode添加头文件配置
按住F1,打开c_cpp_properties.json配置文件:{"configurations": [{"name": "Linux","includePath": ["${workspaceFolder}/**","/home/huangruolan/repos/ns-3-allinone/ns-3-dev/build"],...
按住F1,打开c_cpp_properties.json配置文件:
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/home/huangruolan/repos/ns-3-allinone/ns-3-dev/build"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu17",
"cppStandard": "gnu++17",
"intelliSenseMode": "linux-gcc-x64",
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
}
],
"version": 4
}
红色字体为头文件位置,在linux系统中打开头文件夹,输入pwd获取路径
更多推荐
所有评论(0)