Building regex/1.25.0 with MSVC6SP5, STLPort 4.0
Hi there, I've been trying to build the regex library but failed miserably. The compiler always dies with an error in "regex_traits.hpp" C:\boost_1_25_0\libs\regex\build>nmake INCLUDES="-I%STL_INCLUDE%" -fvc6-stlport.mak Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. if not exist "vc6-stlport\" mkdir vc6-stlport if not exist "vc6-stlport\vc6-stlport-re300m\" mkdir vc6-stlport\vc6-stlport-re300m cl -IC:\STL\STLport-4.0\stlport /nologo /MT /W3 /GX /O2 /GB /GF /Gy /I..\..\..\ /D_MT /DWIN32 /DNDEBUG /D_MBCS /D_LIB / YX /FD /c -Fpvc6-stlport/vc6-stlport-re300m/vc6-stlport-re300m.pch -Fo./vc6-stlport/vc6-stlport-re300m/ -Fdvc6-stlport/vc6-stlport-re300m.pdb ../src/c_reg ex_traits.cpp c_regex_traits.cpp ..\..\..\boost/regex/regex_traits.hpp(596) : error C2059: syntax error : '<' ..\..\..\boost/regex/regex_traits.hpp(596) : error C2238: unexpected token(s) preceding ';' ..\..\..\boost/regex/regex_traits.hpp(597) : error C2059: syntax error : '<' ..\..\..\boost/regex/regex_traits.hpp(597) : error C2238: unexpected token(s) preceding ';' ..\..\..\boost/regex/regex_traits.hpp(688) : error C2059: syntax error : '<' ..\..\..\boost/regex/regex_traits.hpp(688) : error C2238: unexpected token(s) preceding ';' ..\..\..\boost/regex/regex_traits.hpp(689) : error C2059: syntax error : '<' ..\..\..\boost/regex/regex_traits.hpp(689) : error C2238: unexpected token(s) preceding ';' ..\..\..\boost/regex/regex_traits.hpp(690) : error C2059: syntax error : '<' ..\..\..\boost/regex/regex_traits.hpp(690) : error C2238: unexpected token(s) preceding ';' NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. The error stays the same if I try the new build system with the following command line: jam -ftools/build/allyourbase.jam -sTOOLS="msvc" -sBUILD="<include>%STL_INCLUDE%" If I look at the offending line in "regex_traits.hpp" it reads const std::ctype<char>* pctype; Obviously it doesn't know that ctype lives in the std namespace. It works if I use the STL supplied by Microsoft. Does anyone else use this combination of compiler and library and managed to successfully build the regex library? Markus 'mar
Oh, one more thing, the following message seems to describe the same problem: http://groups.yahoo.com/group/boost/message/14322 Markus
participants (2)
-
Markus Schoepflin
-
Markus Schöpflin