Dear Marc (or any g++ programers): I follow your hint, but after that I still get a lot compile error ---------- eric@eric-laptop:~/cppcookbook$ g++ -I/home/eric/boost1/boost_1_46_1/ example12-1.cpp /tmp/ccd4Cx51.o: In function `main': example12-1.cpp:(.text+0x30): undefined reference to `boost::thread::join()' example12-1.cpp:(.text+0x3c): undefined reference to `boost::thread::~thread()' example12-1.cpp:(.text+0x5a): undefined reference to `boost::thread::~thread()' /tmp/ccd4Cx51.o: In function `boost::detail::thread_data_base::thread_data_base()': example12-1.cpp:(.text._ZN5boost6detail16thread_data_baseC2Ev[boost::detail::thread_data_base::thread_data_base()]+0x1b): undefined reference to `vtable for boost::detail::thread_data_base' /tmp/ccd4Cx51.o: In function `boost::thread::yield()': example12-1.cpp:(.text._ZN5boost6thread5yieldEv[boost::thread::yield()]+0x7): undefined reference to `boost::this_thread::yield()' /tmp/ccd4Cx51.o: In function `boost::thread::thread<MyThreadFunc>(MyThreadFunc, boost::disable_if<boost::is_convertible<MyThreadFunc&, boost::detail::thread_move_t<MyThreadFunc> >, boost::thread::dummy*>::type)': example12-1.cpp:(.text._ZN5boost6threadC1I12MyThreadFuncEET_NS_10disable_ifINS_14is_convertibleIRS3_NS_6detail13thread_move_tIS3_EEEEPNS0_5dummyEE4typeE[boost::thread::thread<MyThreadFunc>(MyThreadFunc, boost::disable_if<boost::is_convertible<MyThreadFunc&, boost::detail::thread_move_t<MyThreadFunc> >, boost::thread::dummy*>::type)]+0x21): undefined reference to `boost::thread::start_thread()' /tmp/ccd4Cx51.o: In function `boost::detail::thread_data<MyThreadFunc>::~thread_data()': example12-1.cpp:(.text._ZN5boost6detail11thread_dataI12MyThreadFuncED1Ev[boost::detail::thread_data<MyThreadFunc>::~thread_data()]+0x16): undefined reference to `boost::detail::thread_data_base::~thread_data_base()' /tmp/ccd4Cx51.o: In function `boost::detail::thread_data<MyThreadFunc>::~thread_data()': example12-1.cpp:(.text._ZN5boost6detail11thread_dataI12MyThreadFuncED0Ev[boost::detail::thread_data<MyThreadFunc>::~thread_data()]+0x16): undefined reference to `boost::detail::thread_data_base::~thread_data_base()' /tmp/ccd4Cx51.o:(.rodata._ZTIN5boost6detail11thread_dataI12MyThreadFuncEE[typeinfo for boost::detail::thread_data<MyThreadFunc>]+0x8): undefined reference to `typeinfo for boost::detail::thread_data_base' collect2: ld returned 1 exit status eric@eric-laptop:~/cppcookbook$ ----------------------------------- can I make a link(maybe soft(or hard)) from /usr/include/boost to /home/eric/boost1/boost_1_46_1/boost ? looking to see more suggestion, Eric