Re: boost library, hardtolink&compile, plz help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux