Boost logo

Boost :

From: Ralf Juergensen (rjuergensen_at_[hidden])
Date: 2004-11-26 02:54:36


Hi,

when I compile program_options using VC7.1 and STLport 4.6.2 I get the
following errors:

<snip>
...found 672 targets...
...updating 14 targets...
vc-C++
bin\boost\libs\program_options\build\libboost_program_options.lib\vc-7_1-stlport\release\threading-multi\utf8_codecvt_facet.obj
utf8_codecvt_facet.cpp
E:\work\CommonLibs\test\boost_1_32_0\boost_1_32_0\boost\program_options\detail\utf8_codecvt_facet.hpp(70)
: error C2039: 'codecvt' : is not a member of 'operator``global namespace'''
E:\work\CommonLibs\test\boost_1_32_0\boost_1_32_0\boost\program_options\detail\utf8_codecvt_facet.hpp(70)
: error C2873: 'codecvt' : symbol cannot be used in a using-declaration
</snip>

when STLport is used, BOOST_NO_STDC_NAMESPACE is defined on my machine.
and then the following code fails
(from program_options\detail\utf8_codecvt_facet.hpp around line 70):

#elif defined(BOOST_NO_STDC_NAMESPACE)
     typedef std::mbstate_t mbstate_t;
     namespace std{
         using ::codecvt;
     } // namespace std
#endif

But STLport 4.6.2 puts codecvt correctly under std...

Would be great if this can be fixed for STLport users :-)

Regards

Ralf


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk