My Linux configuration (standard):
{
"name": "Linux",
"includePath": [
"${workspaceRoot}",
"/usr/include/c++/5",
"/usr/local/include",
"/usr/include"
],
"defines": [],
"browse": {
"path": [
"/usr/include/c++/5",
"/usr/local/include",
"/usr/include"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
Error message on the editor: "identifier 'cout' is undefined".
Although the program build normaly.
Can you try adding /usr/include/x86_64-linux-gnu
and /usr/include/x86_64-linux-gnu/c++/5
, assuming those folders exist? If that doesn't work, you can try opening the iostream and child headers to try to find the 1st one with #include files that can't be found.
Problem solved.
My configuration now:
{
"name": "Linux",
"includePath": [
"${workspaceRoot}",
"/usr/include/c++/5",
"/usr/local/include",
"/usr/include",
"/usr/include/x86_64-linux-gnu",
"usr/include/x86_64-linux-gnu/c++/5"
],
"defines": [],
"browse": {
"path": [
"/usr/include/c++/5",
"/usr/local/include",
"/usr/include"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
Thank you!
For others, who may find this issue relevant, your version could be different, e.g., /usr/include/x86_64-linux-gnu/c++/4.8
. Simply check with ls /usr/include/x86_64-linux-gnu/c++/
.
Most helpful comment
Can you try adding
/usr/include/x86_64-linux-gnu
and/usr/include/x86_64-linux-gnu/c++/5
, assuming those folders exist? If that doesn't work, you can try opening the iostream and child headers to try to find the 1st one with #include files that can't be found.