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

前端 未结 4 1240
情歌与酒
情歌与酒 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:37

    I have the same problem yesterday. "error: 'stoi' is not a member of 'std'."

    First, I made sure c++11 was enabled. Then, I updated the g++ compiler to the newest version. After that, this error disappeared.

提交回复
热议问题