I'm using NetBeans 7.4 and I want to use std::stoi
in C++ but this error keeps popping out. I just installed the newest g++ (with cygwin) but it didn't change anything. I also added -std=c++11
then -std=c++0x
to command line and nothing changed. Any help?
Asked
Active
Viewed 175 times
1

Moha the almighty camel
- 4,327
- 4
- 30
- 53

user3369008
- 105
- 11
-
3Did you incluide `
`? – AnT stands with Russia Mar 04 '14 at 18:16 -
Yes I did. Full include: #include
#include – user3369008 Mar 04 '14 at 18:18#include #include #include -
"this error", which is .. ? – Moha the almighty camel Mar 04 '14 at 18:18
-
Better show your code here. – herohuyongtao Mar 04 '14 at 18:18
-
Which is the name of the topic. main.cpp:16:15: error: ‘stoi’ is not a member of ‘std’ – user3369008 Mar 04 '14 at 18:18
-
@user3369008, sorry , my bad. :) can you show some code pleaase – Moha the almighty camel Mar 04 '14 at 18:19
-
1@StefanoSanfilippo it's not a duplicate of that. – Jay Mar 04 '14 at 18:19
-
2@user3369008 See http://stackoverflow.com/questions/8542221/stdstoi-doesnt-exist-in-g-4-6-1-on-mingw it's for MinGW, but it probably applies to CygWin too. – Jay Mar 04 '14 at 18:21
-
Uh... I'll try that or resort to Linux, heh. THanks – user3369008 Mar 04 '14 at 18:21
-
I could not reproduce this issue with gcc version 4.7.2 but did reproduce it with gcc 4.1. – Jeremy Villegas Mar 04 '14 at 18:57