首页 > wxdev-c++ 使用正则库出现编译错误,如何支持ISO C++ standard, C++0x

wxdev-c++ 使用正则库出现编译错误,如何支持ISO C++ standard, C++0x

wxdev-c++ 版本7.4.2.569
使用正则的时候调用库:

#include <regex>

编译时报错:

#error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be 
enabled with the -std=c++0x or -std=gnu++0x compiler options.

在 工具->编译器选项->编译器 里的“编译时加入以下命令” 加上了 “-std=c++0x”
重新编译了也还是一样,后来又尝试了,“在连接中加入以下命令”也加上,也换了“-std=gnu++0x” 都试过了也是没有作用,不知道该怎么解决。


使用的G++版本低了,估计是4.6,升级一下应该就好

【热门文章】
【热门文章】