Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Problem with _STLP_DONT_REDEFINE_STD

Help
2011-02-03
2013-05-13
  • Pedro Lamarão
    Pedro Lamarão
    2011-02-03

    The problematic project is using Visual Studio 6 SP6 and STLport 5.2.1 with the following user configuration:

    #define _STLP_DONT_REDEFINE_STD 1
    #define _STLP_WHOLE_NATIVE_STD 1

    This is not working correctly.

    The example program below:

    #define _STLP_DONT_REDEFINE_STD 1
    #define _STLP_WHOLE_NATIVE_STD  1
    #include <sstream>
    int main (int argc, char* argv[])
    {
        return 0;
    }
    

    fails to compile with this error message:

    Compiling...
    sandbox.cpp
    e:\program files\microsoft visual studio\vc98\include\xlocale(171) : error C2528: '<Unknown>' : pointer to reference is illegal
    e:\program files\microsoft visual studio\vc98\include\xlocale(171) : error C2165: 'left-side modifier' : cannot modify pointers to data
    e:\program files\microsoft visual studio\vc98\include\istream(546) : error C2440: 'initializing' : cannot convert from 'const class std::ctype<char> *' to 'const class std::ctype<char> &'
            Reason: cannot convert from 'const class std::ctype<char> *' to 'const class std::ctype<char>'
            No constructor could take the source type, or constructor overload resolution was ambiguous
    e:\program files\microsoft visual studio\vc98\include\istream(566) : error C2440: 'initializing' : cannot convert from 'const class std::ctype<unsigned short> *' to 'const class std::ctype<unsigned short> &'
            Reason: cannot convert from 'const class std::ctype<unsigned short> *' to 'const class std::ctype<unsigned short>'
            No constructor could take the source type, or constructor overload resolution was ambiguous
    Error executing cl.exe.
    

    A very similar error occurs with an example program that includes

    <locale>
    

    instead.

    Please advise.

     
  • Pedro Lamarão
    Pedro Lamarão
    2011-02-03

    With STLport git master, compiling the same program gives the following error message:

    Compiling...
    sandbox.cpp
    e:\program files\microsoft visual studio\vc98\include\wchar.h(700) : error C2733: second C linkage of overloaded function 'wmemchr' not allowed
            e:\program files\microsoft visual studio\vc98\include\wchar.h(699) : see declaration of 'wmemchr'
    e:\program files\microsoft visual studio\vc98\include\wchar.h(702) : error C2733: second C linkage of overloaded function 'wcschr' not allowed
            e:\program files\microsoft visual studio\vc98\include\wchar.h(701) : see declaration of 'wcschr'
    e:\program files\microsoft visual studio\vc98\include\wchar.h(704) : error C2733: second C linkage of overloaded function 'wcspbrk' not allowed
            e:\program files\microsoft visual studio\vc98\include\wchar.h(703) : see declaration of 'wcspbrk'
    e:\program files\microsoft visual studio\vc98\include\wchar.h(706) : error C2733: second C linkage of overloaded function 'wcsrchr' not allowed
            e:\program files\microsoft visual studio\vc98\include\wchar.h(705) : see declaration of 'wcsrchr'
    e:\program files\microsoft visual studio\vc98\include\wchar.h(708) : error C2733: second C linkage of overloaded function 'wcsstr' not allowed
            e:\program files\microsoft visual studio\vc98\include\wchar.h(707) : see declaration of 'wcsstr'
    c:\documents and settings\pedro.lamarao\my documents\projetos\stlport\stlport\stlport\type_traits(94) : fatal error C1903: unable to recover from previous error(s); stopping compilation
            c:\documents and settings\pedro.lamarao\my documents\projetos\stlport\stlport\stlport\type_traits(96) : see reference to class template instantiation 'detail::__uoc_aux<T>' being compiled
    Error executing cl.exe.
    
     
  • Pedro Lamarão
    Pedro Lamarão
    2011-02-11

    So, closed with WONTFIX? :-(

     
  • Even not opened.