I have scoured google for a solution to fix this (including several posts here on c++ 11 features not working) and I can't find a solution. I have grown attached to netbeans in past year, using it for all my computer science courses. But it is slightly bothersome that some features of C++ are limited in my IDE, especially when they are features my professor is using to teach C++. When I use stoi()
in any way I get an "Unable to resolve identifier"
error. Is there a hot fix of sorts to get netbeans to acquire these features?
I've worked around it for my first programming assignment, but since I'm just now learning C++ I'd like to follow my professor's lead at the moment without doing anything extraneous.
I have tried the accepted solution here: How to use C++11 std::stoi with gcc?, and here: Netbeans C/C++ 7.2 -std=C++11 not recognized by gcc v4.6 or lower and I still get errors. And just as a disclaimer, to my knowledge I am using the listed includes involved here. So if anyone has a solution I'd appreciate it quite much.
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/cygdrive/c/Users/Zachary/Documents/NetBeansProjects/CS_240_HW01'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin_4.x-Windows/cs_240_hw01.exe
make[2]: Entering directory '/cygdrive/c/Users/Zachary/Documents/NetBeansProjects/CS_240_HW01'
mkdir -p build/Debug/Cygwin_4.x-Windows
rm -f "build/Debug/Cygwin_4.x-Windows/main.o.d"
g++ -std=c++0x -c -g -std=c++11 -MMD -MP -MF "build/Debug/Cygwin_4.x-Windows/main.o.d" -o build/Debug/Cygwin_4.x-Windows/main.o main.cpp
main.cpp: In function 'int main(int, char**)':
main.cpp:24:26: error: 'stoi' was not declared in this scope
int myint = stoi(test);
^
nbproject/Makefile-Debug.mk:84: recipe for target 'build/Debug/Cygwin_4.x-Windows/main.o' failed
make[2]: *** [build/Debug/Cygwin_4.x-Windows/main.o] Error 1
make[2]: Leaving directory '/cygdrive/c/Users/Zachary/Documents/NetBeansProjects/CS_240_HW01'
nbproject/Makefile-Debug.mk:62: recipe for target '.build-conf' failed
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/Zachary/Documents/NetBeansProjects/CS_240_HW01'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make: *** [.build-impl] Error 2
EDIT: Added Build output