Red underlining on iostream (C++ Ext. Installed, compiler path correct)

Hi all,

I’m a complete beginner to C++ and programming and I followed the Unreal C++ Udemy course up until lecture 18.

I have a red underlining on #include iostream despite me installing the c++ extension. The complier also gets found and the path in the .json file is correct.

While compiling, I do get the warning “C4530: The code uses C++ exception handling, but [/EHsc] wasn’t included in the compiler options.” If compile with cl triplex.cpp /Ehsc, it works without issue.

I have been fighting this issue for hours now. Please help me. :frowning:

This image provides more context:

Could you show screenshots of the json and the path to cl?

Here’s how the full path looks like. For some reason, it’s not working.

I did install the C++ modules during the Visual Studio Installation and I also downloaded the C++ expansion by Microsoft on Visual Studio Code…

And to be clear you can compile and run the program successfully?

Yes, I was able to compile using cl triplex.cpp /Ehsc and run the programm afterwards. The red underlinings are still present though… I’m guessing I can continue the course without any issues?

You should be able to. Not sure why IntelliSense isn’t working for you though :confused: sorry.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.