Check the names of the binaries from your folders. It is probably g++.
mingw-get ... is that the original mingw (and MSYS)? There is a fork: mingw-w64 and MSYS2, and there is some other GCC Windows port too (CodeBlocks-page might list it). Better maintained ...
the compiler does not complain about newer header files such as <type-traits> or <chrono>
and some older such as <cstdlib> and <vector>
but complained about <string> and <iostream>
the errors I got were a tooltip : in file included from ..
and then in the debug section: a lot of 'does not name a type' errors.
The iostream and string are not "older headers". Latest standard has them. Therefore,
complaints about
Too vague. If a compiler gives an error message, then you have to know the exact message. We are not psychics, so you have to tell the exact message to us too.
it underlines in red: #include <string>
above main ,and
the errors I got were a tooltip : in file included from ..
and then in the debug section: a lot of 'does not name a type' errors:
c:\mingw\include\sys/stat.h:173:14: error: '_dev_t' does not name a type
struct _stat __struct_stat_defined( _off_t, time_t );
^
c:\mingw\include\sys/stat.h:173:14: error: '_ino_t' does not name a type
struct _stat __struct_stat_defined( _off_t, time_t );
^
c:\mingw\include\sys/stat.h:173:14: error: '_mode_t' does not name a type
struct _stat __struct_stat_defined( _off_t, time_t );
^
c:\mingw\include\sys/stat.h:173:14: error: '_dev_t' does not name a type
struct _stat __struct_stat_defined( _off_t, time_t );
^
c:\mingw\include\sys/stat.h:173:14: error: '_off_t' does not name a type
struct _stat __struct_stat_defined( _off_t, time_t );
^
c:\mingw\include\sys/stat.h:180:13: error: '_dev_t' does not name a type
struct stat __struct_stat_defined( _off_t, time_t );
the compiler complaints that the iostream file is allready included?
but when I comment out the iostream file, it gives tthe same error with string even though the program compiled before without complaints??