C++ 擴充函式庫。
Source http://sourceforge.net/projects/boost/files/boost/1.46.1/
$ ./bootstrap.sh $ ./bjam "-sTOOLS=gcc" "--includedir=/usr/include" "--libdir=/usr/lib/boost" install #如果有需要可以另外再 with 幾個 component #--with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread $ g++ test.cpp -L/usr/lib/boost
//example #include <boost/thread/thread.hpp> #include <iostream> void helloworld() { std::cout << "Hello World!" << std::endl; } void main() { boost::thread thrd(&helloworld); thrd.join(); }
參考資源:
- 安裝 http://blogold.chinaunix.net/u3/104108/showart_2075589.html
- 範例 http://blog.monkeypotion.net/gameprog/note/first-touch-of-boost-cpp-libraries
- 介紹 http://viml.nchc.org.tw/blog/paper_info.php?CLASS_ID=1&SUB_ID=1&PAPER_ID=193
- 官網 http://www.boost.org/
- 中文翻譯文件 http://code.google.com/p/boost-doc-zh/w/list
One comment on “boost install”