У меня проблемы с настройкой кода VS на ma c для запуска программ на c ++. Я уже создал 3 файла для setup- 1.c_cpp_properties 2.launch. json. 3.tasks. json. Пожалуйста, дайте мне знать проблему в 3 json файлах, которые я добавил. Я получаю сообщение об ошибке в моем терминале -
Executing task: clang++ -std=c++17 -stdlib=libc++ vectors.cpp -o vectors.out --debug <
clang: error: no such file or directory: 'vectors.cpp'
clang: error: no input files
The terminal process command '/bin/bash -c 'clang++ -std=c++17 -stdlib=libc++ vectors.cpp -o vectors.out --debug'' failed to launch (exit code: 1)
/*Contents of 1st file:*/
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
/*contents of 2nd file:*/
{
// 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": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "/Users/tanvi.singh/Documents/quest/learn_ds/vectors.out",
"args": [],
"stopAtEntry": true,
"cwd": "/Users/tanvi.singh/Documents/quest/learn_ds/",
"environment": [],
"externalConsole": true,
"MIMode": "lldb",
"logging": {
"trace": true,
"traceResponse": true,
"engineLogging": true
}
}
]
}
/ * содержимое 3-го файла: * /
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build with Clang",
"type": "shell",
"command": "clang++",
"args": [
"-std=c++17",
"-stdlib=libc++",
"vectors.cpp",
"-o",
"vectors.out",
"--debug"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}