Uma*_*air 5 c++ eclipse opengl mingw
我在我的代码中写了这一行
vector<GLfloat> cone1 { 0.0f, 2.4f, -11.0f, /*rotated*/30.0f, -1.5f, 0.0f, 0.0f };
Run Code Online (Sandbox Code Playgroud)
但是错误在C++ 98中出现,变量必须由构造函数初始化而不是{}
我已经搜索了我应该使用-std-c ++ 11的解决方案,但我不知道如何在Eclipse中添加它?
Cap*_*ous 11
你可以通过几个简单的步骤来做到这一点......
-std=c++11 现在重建您的项目.
注意:这假设您没有创建项目以使用GNU Autotools或makefile.