Having just built Boost for VS2008 in 64-bit, this is still fresh in my mind.  :)
 
On the bjam command line, you can tell it which toolset to use:
    toolset=msvc-8.0        for VS2005
    toolset=msvc-9.0        for VS2008
(I don't know if "msvc-7.1" is correct for VS2003, but it follows the format.)
 
If you want to force a 32-bit or 64-bit build, add one of these:
    address-model=32
    address-model=64
Of course "64" will only work with compilers that support it.)
 
One other thing that helps a lot:  Run the bjam command from a VisualStudio command prompt for the specific version of VisualStudio.  That will ensure all the necessary environment is setup.
 
    Mike
 


From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Altaf Navalur
Sent: Friday, June 26, 2009 3:42 PM
To: boost-users@lists.boost.org
Subject: [Boost-users] How to Compile Boost for All Versions of Visual Studio

Hello,
  I have installed VS 2003, VS 2005 & VS 2008 in my PC. I have to work on all these versions. When I compile boost, it only compiles for VS 2008. How do I compile it for all the three IDE`s?

Thanks,
  Altaf

--
An eye for an eye only ends up making the whole world blind.

This email was sent to you by Thomson Reuters, the global news and information company.
Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.