Boost logo

Boost Users :

Subject: Re: [Boost-users] Compiling Boost
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-01-31 12:04:50


AMDG

On 1/31/2011 7:44 AM, Bhushan Inamdar wrote:
> I have installed Boost 1.44 and I have a program from a tutorial I
> am trying to compile with out success.
> The program is as follows:
> ===============================================================================
> <snip>
> =============================================================================
> Just create an empty VC++ project and add a source file to it. Then paste
> this code in the source file.
> I believe that, if Boost is correctly installed on one's machine, this
> should compile correctly. For additional information, I have set up the
> include and lib directories as under:
> includes:
> $(BOOST_ROOT)boost
> libs
> $(BOOST_ROOT)stage\lib
> $(BOOST_ROOT)libs
> $(BOOST_ROOT)bin.v2

The last two aren't necessary.

> In the above paths, $(BOOST_ROOT) is added to "System Variables" under the
> "Environment Variables" as C:\Program Files\boost\boost_1_44_0 where it is
> installed. Shall a "\" be added in the end?

There probably needs to be a "\" somewhere. As you have it,
the include directory will expand to
C:\Program Files\boost\boost_1_44_0boost.
Actually, it should be just $(BOOST_ROOT).

> Or shall this variable be added
> to "Path variables" instead of "System variables"?
> I believe that my environment is rightly setup. But I am still having
> problems building a simple console application. I am using Visual Studio
> 2008 on Windows 7.
> Please let me know, what to do and where to check for the missing block?
> Thanks and regards,
>

What problems are you having?

In Christ,
Steven Watanabe


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