[C++-sig] Re: boost.python compilation with STLport-4.5.3

David Abrahams dave at boost-consulting.com
Thu May 22 18:48:20 CEST 2003

"Vincent Rey" <v.rey at laposte.net> writes:

> Boost.Python compiles very well with VC7 stl, but not with STLport-4.5.3.
> Already using STLport for other parts of my application, I would like to
> compile with it.
> It makes about 200 errors, but all related with 'type_info' :
> boost_1_30_0\boost\python\detail\msvc_typeinfo.hpp(23) : error C2039:
> 'type_info' : is not a member of '_STL'
> I guess it's a problem of configuration of boost (version 1_30_0)... but I
> didn't find anything, nor in stlport forum.

It's a problem with your use of STLPort, IIUC.  I think you're trying
to use the native iostreams instead of the STLPort iostreams.  These
lines in STLPort's <typeinfo.h> should be bringing the misplaced
::typeinfo into namespace _STL, unless you are using a configuration
which doesn't put the stlport components into "std::" (i.e. _STL):

    # if defined  (_STLP_USE_OWN_NAMESPACE) && ! (defined (_STLP_TYPEINFO) && !defined(_STLP_NO_NEW_NEW_HEADER))


    using /*_STLP_VENDOR_EXCEPT_STD */ :: type_info;
    # if !(defined(__MRC__) || defined(__SC__))
    using /* _STLP_VENDOR_EXCEPT_STD */ :: bad_typeid;
    # endif
    using /* _STLP_VENDOR_EXCEPT_STD */ :: bad_cast;


    #endif /* _STLP_OWN_NAMESPACE */

I don't think I'm going to support any such configurations unless
someone can show me that I'm mistaken and STLPort is just failing to
put ::type_info into std:: erroneously.

Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list