设置include目录等:
Menu "Project" -> "Build Options"
1.) -> Tab "Search directories" -> Sub-Tab "Compiler": Enter the compiler include path's here. -> Sub-Tab "Linker": Enter the linker include path's here. 2.) -> Tab "Linker settings" -> Add the boost library to the "Link libraries".
用cmake生成CodeBlocks工程后,如果不能调试,需要在CMakeLists.txt开头加上一句:set(CMAKE_BUILD_TYPE Debug)这样make时就会有-g参数了。