Subj : Re: g++ & Boost.threads To : comp.programming.threads From : Ulrich Eckhardt Date : Sun Sep 25 2005 09:38 pm g wrote: > g++ tennis.cpp -otennis -I/usr/local/include/boost-1_33 -Lusr/local/lib You should always specify '-Wall' on the commandline to get useful warnings. > the output is... > undefined reference to 'boost::thread::thread(boost::.....) > +++many messages like this... Yes, you tell your compiler where to find the Boost headers (which is enough for big parts of it) but not where to find the installed libraries (which are needed for Boost.Threads). > how I link the library to my executeble???? By telling your compiler which library you want to link and where to find it, just like any other library, too. Did you btw read the instructions, in particular the point 'getting started'? If anything there is unclear, say so and say exactly what is unclear. Just one more note: the linker error has nothing to do with threads even if you are trying to linking a threading-related lib. It is rather a general C++ problem you are having. Uli -- Questions ? see C++-FAQ Lite: http://parashift.com/c++-faq-lite/ first ! .