Boost logo

Boost Users :

From: Peter Westerstrom (peterw_at_[hidden])
Date: 2003-11-12 20:35:46


Pavel Vozenilek wrote:
> "Peter Westerstrom" <peterw_at_[hidden]> wrote in message
> news:3FB1522A.70206_at_eonreality.se...
>
>>Hello, I get this internal compiler error below when compiling
>>boost-regex (from cvs today 11 nov 2003) using STLport-4.6. The error do
>>not show up when using STLport-4.5.3 though.
>>
>>Any ideas? Problem in STLport-4.6 or boost, that's the question?
>>
>>cl -Ic:\EON\builds\head\Development\ExternalLibraries\include\stlport
>>/nologo /MT /W3 /GX /O2 /GB /GF /Gy
>>/Ic:\EON\builds\head\Development\ExternalLibraries\include\stlport
>>/I..\..\..\ /D_MT /DWIN32 /DNDEBUG /D_MBCS /D_LIB /c
>>-DBOOST_REGEX_STATIC_LINK -D_STLP_USE_STATIC_LIB -D_RTLDLL -Y-
>>-Fo./vc6-stlport/libboost_regex-vc6-mt-sp-1_31/
>>-Fdvc6-stlport/libboost_regex-vc6-mt-sp-1_31.pdb ../src/c_regex_traits.cpp
>>Command line warning D4002 : ignoring unknown option '-Y-'
>>c_regex_traits.cpp
>>..\..\..\boost/detail/allocator.hpp(67) : fatal error C1001: INTERNAL
>>COMPILER ERROR
>> (compiler file 'msc1.cpp', line 1794)
>> Please choose the Technical Support command on the Visual C++
>> Help menu, or open the Technical Support help file for more
>>information
>>NMAKE : fatal error U1077: 'cl' : return code '0x2'
>>Stop.
>>
>
> It is most likely STLport problem. I am getting it too in unrelated code.
>
> /Pavel

STLport defines _STLP_NO_MEMBER_TEMPLATE_KEYWORD for VC++6.0.
I'm not exactly sure what that means. But the compiler test case in
stlport for that define looks very similar to what is done at line 67 in
detail/allocator.hpp.

If I'm right, the solution is to att the following to boost stlport.hpp
at line 79:
#if defined(_STLP_NO_MEMBER_TEMPLATE_KEYWORD)
# define BOOST_NO_STD_ALLOCATOR
#endif

Peter Westerstrom
peterw_at_[hidden]


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