|
Boost Users : |
From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2001-10-02 05:42:47
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net