$ ./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();
}
arrow
arrow
    全站熱搜

    hedgezzz 發表在 痞客邦 留言(0) 人氣()