Opened 13 years ago
#224 new defect
cxxflags bug when using conditional
Reported by: | Md Abdur Rahim | Owned by: | somebody |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | component1 | Version: | |
Keywords: | Cc: |
Description
# project-root.jam exe cxxflags_bug : main.cc : <toolset>msvc:<cxxflags>/Zc:wchar_t- ;
# main.cc void main() { wchar_t tmp = '\0'; }
An error is expected:
main.cc(1) : error C2065: 'wchar_t' : undeclared identifier
but it does not happen.
An workaround propoused by Gevorg Voskanyan: "
A workaround is to embed the flags value in quotes and append a trailing space inside:
#project-root.jam exe cxxflags_bug : main.cc : <toolset>msvc:<cxxflags>"/Zc:wchar_t- " ;
"
Version: Boost.Build engine (bjam) is 03.1.19 Boost.Build core (at d:/boost-build-trunk) is 2011.04-svn
Paulo Márcio Figueiredo Alves pauloalves1986@…