Boost logo

Boost-Build :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2007-09-25 09:58:17

Peter Foley wrote:
> Hi,
> I am looking for some guidance from people who have managed to integrate
> Boost.Build (the MSVC toolset) into Microsoft Visual Studio
> (specifically Visual C++ 2005).
> I have searched through the archives for previous posts to the list.
> The most notable thread I can find is:
> *
> Based on advice from this thread and from the Boost.Build manual I have
> managed to setup Visual C++ 2005 to use a makefile project and have
> setup the various commands that it calls like:
> Build Command Line - %some_path%\bjam_setup.bat && %some_path%\bjam.exe
> -d0
> Clean Command Line - %some_path%\bjam_setup.bat && %some_path%\bjam.exe
> --clean-all

I just run: bjam -sBOOST_BUILD=C:/some/path toolset=msvc variant=debug
-- What are you doing in that bjam_setup.bat? I'm curious because we've
tried to remove the need for setups like that.

> These work. I can successfully compile a simple hello world program
> (the one mentioned here -
> I am unsure what parameters I should pass for the "Rebuild All Command
> Line"? Is this simply a case of passing the clean all parameter?

You want to use the "-a" option.

> Also I am interested to know if anyone has configured the Debugging
> section of the Makefile Property Pages? I vaguely remember that someone
> posted a solution for this but for the life of me I cannot find the post
> in the archives.

IIRC when I set up the one VS project I left all those alone and just
made sure the "NMake/Output" is set correctly to the executable generated.

> Is there anything else that people find useful setting up when using
> Boost.Build with Visual Studio?

I set the "NMake/Include Search Path" to find the various project headers.

-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. -
-- rrivera/ - grafik/
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at