boost library, hardtolink&compile, plz help
Marc Glisse
marc.glisse@inria.fr
Sat May 21 09:30:00 GMT 2011
On Sat, 21 May 2011, eric lin wrote:
> dear g++ programers:
>
> I download boost's 1_46_1, then try to compile a simple program copied from book(C++ Cookbook) page447, 12.1 Creating a Thread
> --------------
> // example 12-1. Creating a thread
> #include <iostream>
> #include </home/eric/boost1/boost_1_46_1/boost/thread/thread.hpp>
> #include </home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp>
I strongly doubt you copied that from a book. You should have:
#include <boost/thread/thread.hpp>
and compile with g++ -I/home/eric/boost1/boost_1_46_1 ...
--
Marc Glisse
More information about the Gcc-help
mailing list