c++11g++-4.7tdm-mingw

g++ (tdm-1) 4.7.1 doesnt support all c++11 features


it's supposed g++ (tdm-1) 4.7.1 that comes with codeblocks for windows support all C++11 features, std::stoi(str) isnt reconized, same for other c++11 functions. (string header is included).

Do i need to look for another compiler ?


Solution

  • This is due to missing C library functions in MinGW, see the last few comments on https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37522

    I made some improvements so it is supported in MinGW GCC 4.9 and later, so you could just upgrade to a later TDM build.