简体   繁体   English

Eclipse,minGW和C ++ 11

[英]Eclipse, minGW and C++11

I am using Eclipse with the winGW compiler (gcc version 3.4.5). 我正在使用Eclipse和winGW编译器(gcc版本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. 我需要使用一些C ++ 11的功能,我一直在关注类似问题的几个答案,例如这个 ,但它在我的情况下不起作用。 Eclipse says: Eclipse说:

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? 这个版本的minGW是否支持C ++ 11?

According to this documentation , the earliest GCC version that supports any C++11 features is version 4.3 . 根据此文档 ,支持任何C ++ 11功能的最早GCC版本是4.3版。 The latest MinGW version is 4.8.1 , but your version will indeed not support any C++11 features. 最新的MinGW版本是4.8.1 ,但您的版本确实不支持任何C ++ 11功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM