Hox to fix #include errors detected
?
#9641
-
Here is my code #include<iostream>
using namespace std;
int main() {
cout << "Hello World!";
} Here is the error message
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
What is your compilerPath set to? What do you get when you run the C/C++: Log Diagnostics command from the Command Palette after opening the cpp.cpp file? |
Beta Was this translation helpful? Give feedback.
-
@NhanAZ it looks like the extension cannot locate the file iostream. The extension will get the path of system libraries based on an installed compiler's path. Could you run the command |
Beta Was this translation helpful? Give feedback.
-
Also, for additional information about IntelliSense configuration based on your platform, you can go to https://code.visualstudio.com/docs/languages/cpp#_tutorials |
Beta Was this translation helpful? Give feedback.
Also, for additional information about IntelliSense configuration based on your platform, you can go to https://code.visualstudio.com/docs/languages/cpp#_tutorials