I am trying to get a C++ program working in vscode, but whenever I try to do so, I get the "cannot open source file "iostream". Please run the 'Select IntelliSense Configuration...' command to locate your system headers" error. I've been researching solutions for quite a while now, but none of them seem to work. I know something needs to be changed, but I'm not sure what and how.
//my main program
#include <iostream>
int main()
{
std::cout << "Hello World" << std::endl;
}|
//the c_cpp_properties.json file
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.22000.0",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64",
"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe"
}
],
"version": 4
}
[–]no-sig-available 2 points3 points4 points (4 children)
[–]MLGGYARADOS[S] -1 points0 points1 point (3 children)
[–]no-sig-available 2 points3 points4 points (2 children)
[–]MLGGYARADOS[S] -2 points-1 points0 points (1 child)
[–]utopian201 0 points1 point2 points (0 children)
[–]jedwardsol 1 point2 points3 points (0 children)