Enabling `-std=c++14` flag in Code::Blocks
问题 I have installed Code::Blocks for Windows and want to compile C++14 code like generic lambdas but the binary version of Code::Blocks that I've installed from codeblocks.org doesn't support the flag -std=c++14 . How do I update the compiler and enable -std=c++14 flag for Code::Blocks? 回答1: To compile your source code using C++14 in Code::Blocks, you, first of all, need to download and install a compiler that supports C++14 features. Here’s how you can do it on Windows: Download MinGW from here