如何解决试图运行c ++文件,但它表示launch.json需要更新其包含路径
试图在C ++中运行一个看起来像这样的简单hello world程序
#include <iostream>
int main() {
std::cout << "Hello World!";
return 0;
}
但是,它给了我错误:检测到#include错误。请更新您的includePath
。该翻译单元的花粉已禁用
我进入了它引导我的Json文件,并向我显示了
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information,visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0","configurations": [
{
"name": "(gdb) Launch","type": "cppdbg","request": "launch","program": "cl","args": ["-g","${file}","-o","${fileDirname}\\${fileBasenameNoExtension}.exe"],"stopAtEntry": false,"cwd": "${workspaceFolder}","environment": [],"externalConsole": false,"MIMode": "gdb","miDebuggerPath": "/path/to/gdb","setupCommands": [
{
"description": "Enable pretty-printing for gdb","text": "-enable-pretty-printing","ignoreFailures": true
}
]
}
]
}
我对下一步工作感到困惑,如果有人可以帮助,将不胜感激
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。