Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2006-03-08 10:34:04


"Tom Nabhani" <diomedes.t_at_[hidden]> writes:

> Hi,
>
> I'm having some difficulty using the boost libraries in my programs (I have
> an iBook running Panther). My boost install passes all the regression
> tests. My files are all stored in the appropriate places under /usr/local.
> But when I try to #include <boost> libraries in my programs, the compiler
> doesn't seem to find them. I'm assuming that there is some very simple
> stupid problem with the way my computer is set up, but I don't know enough
> about using c++ libraries to know what to do. I'm a pretty experienced Java
> programmer, but I'm very new to c++. Unfortuntately I don't have anyone to
> ask how to solve this problem. I hope this doesn't try your patience too
> much, but could anybody suggest how I might get this problem fixed?

you need to put the Boost root directory in your #include path, by
adding

       -Ipath/to/boost/root

to your g++ command line. The boost root directory is the one
containing a subdirectory called "boost," which subdirectory contains
lots of .hpp files.

HTH,

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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