Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2007-05-15 01:04:56


on Sun May 13 2007, "Josue Gomes" <josue.gomes.honeypot-AT-gmail.com> wrote:

> Hi,
>
> I've successfully built Boost 1.34 with MS Visual C++ "Orcas" Express Edition.
>
> To do so I've modified msvc.jam and visualc.hpp. Here the patch files
> for all of you interested.
>
> --- msvc.jam 2007-05-13 07:37:48.562500000 -0300
> +++ msvc.jam 2007-05-12 13:10:57.734375000 -0300
> @@ -231,6 +231,10 @@ local rule configure-really (
> {
> # Even if version is not explicitly specified, try to
> detect the version
> # from the path.
> + if [ MATCH "(Microsoft Visual Studio 9.0)" : $(command) ]
> + {
> + version = 9.0 ;
> + }
> if [ MATCH "(Microsoft Visual Studio 8)" : $(command) ]
> {
> version = 8.0 ;

It's not your fault for following the pattern that was already there,
but looking at the path to identify the compiler is suboptimal at
best. We should be invoking the compiler using the SHELL function and
asking it to tell us its version. See gcc.jam for an example.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
Don't Miss BoostCon 2007! ==> http://www.boostcon.com

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