且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何启用Codelite中的C ++ 11功能

更新时间:2022-06-22 00:46:44

有必要将-std = c ++ 11传递给编译器以启用C ++ 11功能。下面是在Codelite中执行此操作的步骤:

It is necessary to pass -std=c++11 to the compiler to enable C++11 features. Here are the steps to do so in Codelite:


  • 在工作区视图中右键单击项目。

  • 选择此弹出式菜单底部附近的设置。通用设置 - >编译器 - > C ++编译器选项

  • 单击分号分隔的编译器开关列表以显示缺省值并单击缺省值。

  • 点击-std = c ++ 11的复选框。

  • Right click on the project in the workspace view.
  • Select Settings near the bottom of this pop-up menu. Common Settings->Compiler->C++ Compiler Options
  • Click into the semicolon delimited list of compiler switches to reveal elipses and click on the elipses.
  • Click the checkbox for -std=c++11