nullptr in Cygwin!

I am trying to use nullptr in Cygwin, but I keep getting an error saying nullptr is not defined. I found this website:

https://gcc.gnu.org/gcc-4.6/changes.html


It says:

"The i[34567]86-*-pe alias for Cygwin targets has also been obsoleted; users should configure for i[34567]86-*-cygwin* instead."

Anyone what know this means?

My Cygwin probably doesn't use c++11. How would I get c++11 on Cygwin?
Last edited on
I don't know much about cygwin so I have no idea if it makes it different but normally when compiling with GCC 4.6 you have to pass -std=c++0x to the compiler to enable C++11 features.
Last edited on
Cygwin in the Windows box next to me has 4.8.3. Maybe you should update cygwin.
Yes, so it turns out all I needed was to type -std=c++11.
Topic archived. No new replies allowed.