Boost logo

Boost-Build :

Subject: Re: [Boost-build] cxxflags bug ?
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2011-04-08 09:51:43


Paulo Márcio Figueiredo Alves wrote: > To: Boost.Build developer's and user's list <boost-build_at_[hidden]> > Sent: Fri, April 8, 2011 6:33:28 PM > Subject: Re: [Boost-build] cxxflags bug ? > > It's missing some information. It just fails if I use conditional, like: > <toolset>msvc:<cxxflags>/Zc:wchar_t- > > I'm sending a sample now, the expected output is: > > ... > main.cc(2) : error C2065: 'wchar_t' : undeclared identifier > main.cc(2) : error C2146: syntax error : missing ';' before identifier 'tmp' > main.cc(2) : error C2065: 'tmp' : undeclared identifier > ... > > but it does not occur. > > # project-root.jam > exe cxxflags_bug : main.cc : <toolset>msvc:<cxxflags>/Zc:wchar_t- ; > > # main.cc > void main() { wchar_t tmp = '\0'; } A workaround is to embed the flags value in quotes and append a trailing space inside: exe cxxflags_workaround : main.cc : <toolset>msvc:<cxxflags>"/Zc:wchar_t- " ; Didn't investigate why the original doesn't work though -- I'd ask you to open a ticket at https://trac.lvk.cs.msu.su/boost.build/ so it isn't forgotten (svn.boost.org seems broken at this moment). Thanks, Gevorg


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