cygwin g++ std::stoi "error: ‘stoi’ is not a member of ‘std

前端 未结 4 1244
情歌与酒
情歌与酒 2020-11-30 09:55

I have:

-cygwin 1.7.25 on windows 7/32bit

-g++ --version --> g++ (GCC) 4.8.2

-libstdc++.a --> gcc-g++-4.8.2-1

Tried to make a c++ Hello Wor

4条回答
  •  半阙折子戏
    2020-11-30 10:28

    stoi works correct only on mingw64 for me. If you use Codeblocks, don't forget to check if your projects compiler is set to mingw64.

提交回复
热议问题