包含头文件<code>#include <unordered_map></code>后编译器报错,错误信息为:
this file requires compiler and library support for the \iso c++ 2011 standard. this support is currently experimental, and must be \enabled with the -std=c++11 or -std=gnu++11 compiler options.
该错误来自文件:c++0x_warning.h中的
点击settings-compiler,弹出如下窗口:
勾选上上图红色方框中的任意一项。
ubuntu14.04下,codeblocks勾选上smartindent之后只能缩进仍然不可用
<code>sudo apt-get install codeblocks-contrib</code>
重启codeblocks