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.

Altaf Navalur wrote:
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? The toolset option to bjam should allow you to specify the VS version.
bjam toolset=msvc-9.0 ; for VS 2008 bjam toolset=msvc-8.0 ; for VS 2005 bjam toolset=msvc-7.1 ; for VS 2003 Sebastian

When I execute it as follows, I am getting error "vc8.0.jam: No such file or directory" C:\common\boost_1_39_0>bjam.exe --toolset=vc8.0 vc8.0.jam: No such file or directory On Sat, Jun 27, 2009 at 2:41 AM, Sebastian Redl < sebastian.redl@getdesigned.at> wrote:
Altaf Navalur wrote:
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? The toolset option to bjam should allow you to specify the VS version.
bjam toolset=msvc-9.0 ; for VS 2008 bjam toolset=msvc-8.0 ; for VS 2005 bjam toolset=msvc-7.1 ; for VS 2003
Sebastian _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- An eye for an eye only ends up making the whole world blind.

AMDG Altaf Navalur wrote:
When I execute it as follows, I am getting error "vc8.0.jam: No such file or directory"
C:\common\boost_1_39_0>bjam.exe --toolset=vc8.0 vc8.0.jam: No such file or directory
It isn't vc8.0, it's msvc-8.0
On Sat, Jun 27, 2009 at 2:41 AM, Sebastian Redl < sebastian.redl@getdesigned.at> wrote:
Altaf Navalur wrote:
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?
The toolset option to bjam should allow you to specify the VS version.
bjam toolset=msvc-9.0 ; for VS 2008 bjam toolset=msvc-8.0 ; for VS 2005 bjam toolset=msvc-7.1 ; for VS 2003

I tried all varieties, Still same problem.
Where should I keep "boost-build" folder?
On Sat, Jun 27, 2009 at 3:54 AM, Steven Watanabe
AMDG
Altaf Navalur wrote:
When I execute it as follows, I am getting error "vc8.0.jam: No such file or directory"
C:\common\boost_1_39_0>bjam.exe --toolset=vc8.0 vc8.0.jam: No such file or directory
It isn't vc8.0, it's msvc-8.0
On Sat, Jun 27, 2009 at 2:41 AM, Sebastian Redl <
sebastian.redl@getdesigned.at> wrote:
Altaf Navalur wrote:
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?
The toolset option to bjam should allow you to specify the VS version.
bjam toolset=msvc-9.0 ; for VS 2008 bjam toolset=msvc-8.0 ; for VS 2005 bjam toolset=msvc-7.1 ; for VS 2003
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- An eye for an eye only ends up making the whole world blind.

AMDG Altaf Navalur wrote:
I tried all varieties, Still same problem. Where should I keep "boost-build" folder?
What boost-build folder are you referring to? How did you get Boost? If you downloaded a distribution from sourceforge, you shouldn't need to deal with Boost.Build independently. What exactly do you get with bjam toolset=msvc-8.0 ? In Christ, Steven Watanabe

Ah... Finally it`s working. I created an environment variable BOOST_ROOT. I used bjam.exe from "boost-jam-3.1.13-1-ntx86.zip" -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Steven Watanabe Sent: Saturday, June 27, 2009 5:17 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] How to Compile Boost for All Versions of Visual Studio AMDG Altaf Navalur wrote:
I tried all varieties, Still same problem. Where should I keep "boost-build" folder?
What boost-build folder are you referring to? How did you get Boost? If you downloaded a distribution from sourceforge, you shouldn't need to deal with Boost.Build independently. What exactly do you get with bjam toolset=msvc-8.0 ? In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

AMDG Altaf wrote:
Ah... Finally it`s working. I created an environment variable BOOST_ROOT.
This shouldn't be needed.
I used bjam.exe from "boost-jam-3.1.13-1-ntx86.zip"
That's a really old version of bjam. What version of Boost are you using? In Christ, Steven Watanabe

I am using boost_1_39_0 -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Steven Watanabe Sent: Saturday, June 27, 2009 5:30 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] How to Compile Boost for All Versions of Visual Studio AMDG Altaf wrote:
Ah... Finally it`s working. I created an environment variable BOOST_ROOT.
This shouldn't be needed.
I used bjam.exe from "boost-jam-3.1.13-1-ntx86.zip"
That's a really old version of bjam. What version of Boost are you using? In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Altaf wrote:
I am using boost_1_39_0
In that case, all you need is: .\bootstrap.bat .\bjam toolset=msvc-8.0 Is that not working? Did you miss these instructions in getting started guide, or used an older version of it? - Volodya

I had missed : .\bootstrap.bat -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Vladimir Prus Sent: Saturday, June 27, 2009 6:35 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] How to Compile Boost for All Versions of Visual Studio Altaf wrote:
I am using boost_1_39_0
In that case, all you need is: .\bootstrap.bat .\bjam toolset=msvc-8.0 Is that not working? Did you miss these instructions in getting started guide, or used an older version of it? - Volodya _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Fri, Jun 26, 2009 at 3:41 PM, Altaf Navalur
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?
Each version of MSVC ships with its own command prompt. Open the corresponding command prompt, then cd to the boost build directory and use the 'toolset=' option on the command line when you build.

AMDG Zachary Turner wrote:
On Fri, Jun 26, 2009 at 3:41 PM, Altaf Navalur
wrote: 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?
Each version of MSVC ships with its own command prompt. Open the corresponding command prompt, then cd to the boost build directory and use the 'toolset=' option on the command line when you build
The command prompt is unnecessary. Boost.Build searches the registry for known versions of msvc. If you don't specify a version, the default is the most recent one found. In Christ, Steven Watanabe

AMDG Altaf Navalur wrote:
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?
bjam toolset=msvc-7.1 toolset=msvc-8.0 toolset=msvc-9.0 <other options> In Christ, Steven Watanabe

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.

AMDG Michael.Broida@thomsonreuters.com wrote:
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.
This shouldn't be needed since Boost.Build calls the appropriate batch file to set up the environment before running the compiler. In Christ, Steven Watanabe
participants (7)
-
Altaf
-
Altaf Navalur
-
Michael.Broida@thomsonreuters.com
-
Sebastian Redl
-
Steven Watanabe
-
Vladimir Prus
-
Zachary Turner