From: David Abrahams (gclbb-jamboost_at_[hidden])
Date: 2003-05-08 11:27:30
Vladimir Prus <ghost_at_[hidden]> writes:
> I've a question for msvc users. Now, V2 works ok if you specify
> using msvc : 6.5 ;
> in user-config.jam. But if you write
> using msvc ;
> then it will works only if vcvasrs32.bat was called previously. Two people
> already stumbled on it, and I think something should be done. The options are
> 1. Document the the second case ("using msvc ; ") works only if vcvars32.bat
> were called.
> 2. If vcvars32.bat is in path, use that to find the path to
Usually the compiler and vcvars32.bat are in the same directory, so
this wouldn't do much.
> Invoke vcvars32.bat before all tool invocations. If vcvars32.bat is
> not in path, look though default install location for versions 7.1,
> 7.0 and 6. If compiler is found in any of locations, it will be
it was supposed to work that way in the first place. If it didn't, it
was just a bug. Note also the issue with the handling of optional
But anyway, my overall vote on this option is:
> 3. Try to sense if vcvars32.bat was already called. If so, use
> variables it sets to find the path to compiler. If vcvars32.bat is
> not already called, use logic from (2).
If it was already called, the compiler is in the path.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk