Boost logo

Boost Users :

Subject: Re: [Boost-users] include issues
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2009-08-20 19:54:32


On Thu, Aug 20, 2009 at 3:51 PM, Shaolin<shaolinfinest_at_[hidden]> wrote:
> Hi Guys
>
> I am having problems with includes. I have the boost folder in my c++
> program folder and use the following include statement to use the thread.hpp
> file:
>
> #include "boost/thread/thread.hpp"
>
> However, everytime I compile (g++ myprogram.cc) I get the following error
> message:
>
> boost/thread/thread.hpp: No such file or directory
>
> Where am I going wrong ? I just downloaded the foleder and moved it to my
> c++ application dir.

Make sure boost is in an included directory, not directly linked in
your project from files, and include things using brackets as so:
#include <boost/thread/thread.hpp>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net