The error says it all. Trying adding -std=c++11
or -std=gnu++11
to the compiler options in your NetBeans IDE.
I’ve not used Netbeans but see this link where a snapshot of build variables is shown and that is where you need to add the compiler options.
1
solved gcc 4.7 Give me error message