Boost logo

Boost Users :

From: Jens Seidel (jensseidel_at_[hidden])
Date: 2008-04-20 12:42:26


On Sun, Apr 20, 2008 at 03:35:27AM +0000, 7stud wrote:
> Following the instructions in the tutorial, I installed
> boost in /usr/local as instructed, so my directory
> structure is:
>
> /usr/local/boost_1_34_1/boost
>
> I also tried to execute the program from the command line with
> the original include path:
>
> #include <boost/lambda/lambda.hpp>
>
> but I get the same error:
>
> ~/2testing/dir1$ g++ prog1.cpp
> prog1.cpp:1:35: error: boost/lambda/lambda.hpp:

You need of course to specify /usr/local/boost_1_34_1 as include path
via -isystem /usr/local/boost_1_34_1 or -I /usr/local/boost_1_34_1
so that the compiler knows where to find boost header files.

Jens


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