I’ve been trying to code with C++ in Visual Studio 2022, however, some weird errors have been showing off. It is about the source files. Like it said “Cannot find source file —.h”. (I don’t have an image here)
I figured out this is because I didn’t put the MinGW files into Visual Studio. So I did it like this question. And the files I imported are from CodeBlocks from this directory C:Program FilesCodeBlocksMinGWx86_64-w64-mingw32include
However, now it shows another bunch of errors and this time I have no idea what does it mean:
Some errors:
E0169 expected a declaration
E0135 namespace “std” has no member “type_info”
E0130 expected a ‘{‘
E1835 attribute “nothrow” does not apply here
and hundreds of more errors and still idk why did they occur.
Please explain to me why did this happen and also give me a tutorial to use CPP properly on Visual Studio 2022 (I’m using Windows)