設置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參數了。