Sep 28, 2014 at 5:27am UTC
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 Sep 28, 2014 at 5:29am UTC
Sep 28, 2014 at 8:08am UTC
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 Sep 28, 2014 at 8:12am UTC
Sep 29, 2014 at 9:09am UTC
Cygwin in the Windows box next to me has 4.8.3. Maybe you should update cygwin.
Sep 30, 2014 at 5:44am UTC
Yes, so it turns out all I needed was to type -std=c++11.