codeblocks中出现#error This file requires compiler and library support for the错误时的解决方案

codeblocks中出现#error This file requires compiler and library support for the错误时的解决方案

codeblocks中出现#error This file requires compiler and library support for the错误时的解决方案

一、点击"Settings"和"Compiler"。

codeblocks中出现#error This file requires compiler and library support for the错误时的解决方案

二、选择“Have g++ follow the C++…”这个选项,然后点击“OK”。

codeblocks中出现#error This file requires compiler and library support for the错误时的解决方案

三、再重新运行,就解决这个问题了!