当我尝试编译时,G++编译器显示以下错误:
C:\wx\include\wx\strvararg.h|350|error: 'is_enum' in namespace 'std' does not name a template type|
C:\wx\include\wx\strvararg.h|354|error: 'is_enum' was not declared in this scope|
C:\wx\include\wx\strvararg.h|354|error: template argument 1 is invalid|
我为此使用Code::Blocks,并使用wxWidgets的非整体DLL构建。
谢谢你的帮助!
最佳答案
如Brian所述,您应该启用C++ 11。有两种方法可以执行此操作,如您所见What are the differences between -std=c++11 and -std=gnu++11?。
我记得,在编译整个wxWidgets库时,我使用了-std = gnu++ 11,没有任何问题。
关于c++ - 尝试编译我的wxWidgets程序时出现 “is_enum not declared in this scope”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37311147/