提示如下:
c_cpp_properties.json以按如下配置:
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/Library/Developer/CommandLineTools/usr/include",
"/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include",
"/usr/local/include"
],
"defines": [],
"macFrameworkPath": [
"/System/Library/Frameworks",
"/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang++",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64",
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
}
],
"version": 4
}
用vscode自带的debug,无异常,用cmake编译运行,也无异常。
推测应该是单纯的vscode识别不出来,如何解决?
请大佬解答,感激不尽!
我把解决办法放到了这篇文章底部 https://segmentfault.com/a/11...