سؤال

I am using Eclipse with the winGW compiler (gcc version 3.4.5). I need to use some C++11 features, I have been following several answers to similar questions such as this one, but it does not work in my case. Eclipse says:

cclplus.exe: error: unrecognized command line option "-std=c++0x"
cclplus.exe: error: unrecognized command line option "-std=c++11"

Does this version of minGW supports C++11?

هل كانت مفيدة؟

المحلول

According to this documentation, the earliest GCC version that supports any C++11 features is version 4.3. The latest MinGW version is 4.8.1, but your version will indeed not support any C++11 features.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top