I am getting an intellisense highlight/pop up error
"cannot open source file "string_view". Please run the 'Select IntelliSense Configuration...' command to locate your system headers.C/C++(1696)"
although i did fixed the compiler path, set the language standard to c++17, still getting this error.
Its only happening for MinGW compiler but when i select the Intellisense Configure as cl.exe from MSVC the error isnt highlighted but still the program doesn't run, i am new to vs code environment specifically and i believe the some of the json file settings have been changed, cant figure out what.
heres my
cpp_properties.json file contents
{
"configurations": [
{
"name": "windows-g++-x64",
"includePath": [
"${workspaceFolder}/**"
],
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-gcc-x64",
"compilerArgs": [
""
]
},
{
"name": "windows-gcc-x64",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.22621.0",
"compilerPath": "cl.exe",
"cStandard": "c17",
"intelliSenseMode": "windows-msvc-x64"
}
],
"version": 4
}
Any help would be appreciated