スレッド化のためにブースト ライブラリをビルドする必要がありました。だから私は命令を下した
./bootstrap.sh
boost_1_46_1 ディレクトリにあります。それで
bjam --toolset=gcc --build-type=complete --with-thread link=static stage
以下のコマンドを使用して、スレッドを含む単純なプログラムをコンパイルしようとすると、エラーが発生します。
g++ -I/home/sharatds/Downloads/boost_1_46_1 /home/sharatds/Downloads/boost_1_46_1/stage/lib/libboost_thread.a main.cpp -o ini
main.cpp:(.text+0x804): undefined reference to `boost::thread::join()'
main.cpp:(.text+0x9ec): undefined reference to `boost::thread::~thread()'
何か不足していますか?