Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3046

Compiler error when using "#include " and/or "#include "

$
0
0
Hi,
I'm teaching myself C++ using MS Visual Studio Community 2022, so I'm a newbie. I've written some code and I've decided to write the output of the application to text file, so I added these lines to my code:

include <iostream>
include <fstream>

When I build my solution, I get these errors:

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include\yvals_core.h(28): STL1003: Unexpected compiler, expected C++ compiler.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include\yvals_core.h(29,1): fatal error C1189: #error: Error in C++ Standard Library usage

I can't work out how to fix this, any advice appreciated!

Thank you.

Viewing all articles
Browse latest Browse all 3046

Trending Articles