From: Samuel DEBIONNE (dj_samy_at_[hidden])
Date: 2005-04-01 12:25:26
--- In jamboost_at_[hidden], Vladimir Prus <ghost_at_c...> wrote:
> Hi Samuel,
> > I'm encountering a problem to build the date_time library with
> > under NT with msvc 7.1. I believe this problem has already been
> > mentioned in this news group, but I prefer to remember it
> > bjam --v2 libs/date_time/build
> > gives an error in boost\lexical_cast.hpp(150) : error C2679. (no
> > operator found which takes a right-hand operand of type 'type'
> > there is no acceptable conversion)). And other following
> > The same code (fortunately!) compiled well with BBv1. So I
> > the compiler "cl" command lines called by bjam and find out
> > only difference that makes it work (v1) or not (v2) is
> > the /Zc:wchar_t option that makes wchar_t become a native type. I
> > don't see any straight relation between this option and the
> I don't recall the specifics, but unless wchar_t is native type
> lexical_cast.hpp does not define some overload, and something
> > Finally, I would like some help to implement a fix that would add
> > the /Zc:wchar_t option either all the time when msvc toolset is
> > or only for some specified Jamefiles.
> The issue is that V2 takes a conservative approach. Unless we're
> compiler is 7.0+, we don't pass the option, since earlier
compilers did not
> have it.
> Does using explicit
> using msvc : 7.1 ;
> helps? What is your installation path? There's some logic in
> tries to guess version from the path. In particular, if the path
> compiler includes ".NET 2003\\VC7", it should decide it's 7.1 and
> pass /Z:wchar_t.
> Vladimir Prus
> Boost.Build V2: http://boost.org/boost-build2
When I force explicitely the version of msvc, it solves the problem.
So thanks for your help ! It seems that in my case the logic that
try to guess the version of vc does not work. Here the path where it
is installed :
d:\Microsoft Visual Studio .NET 2003\Vc7\bin
that includes the ".NET 2003\\VC7". It is the only version I have
installed on this machine. Here is the version bb and bjam I'm
Boost.Build V2 (Milestone 10)
I also try with a fresh check out from CVS but it was the same
problem. Maybe something wrong with my install... If you need more
info, I'm your man.
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