Re: [Boost-users] include issues

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.

AMDG Shaolin wrote:
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.
You need to use -I. Check your compiler's documentation. In Christ, Steven Watanabe

On Thu, Aug 20, 2009 at 3:51 PM, Shaolin<shaolinfinest@gmail.com> 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>

Thanks guys, issue fixed. 2009/8/21 OvermindDL1 <overminddl1@gmail.com>
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
On Thu, Aug 20, 2009 at 3:51 PM, Shaolin<shaolinfinest@gmail.com> wrote: 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 mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
OvermindDL1
-
Shaolin
-
Steven Watanabe