进入codeblocks,点击Settings --> Compiler..,进入如下页面 勾选“Have g++ follow the C++11 ISO language standard [-std=c++11]”并确定.可以通过如下示例来查看效果: #include <iostream> #include <functional> using namespace std; int add(int a, int b) { return a + b; } int main…
FROM: http://lazyfoo.net/tutorials/SDL/06_extension_libraries_and_loading_other_image_formats/windows/codeblocks/index.php Setting up SDL Extension Libraries on Code::Blocks 12.11 Last Updated 11/18/13 1)First thing you need to do is download SDL_ima…
FROM: http://lazyfoo.net/tutorials/SDL/01_hello_SDL/windows/codeblocks/index.php Setting up SDL 2 on Code::Blocks 12.11 Last Updated 9/17/13 1)First thing you need to do is download SDL headers, libary and binaries. You will find them on the SDL webs…