[ros-kernel] explorer doesn't compile

Royce Mitchell III royce3 at ev1.net
Mon Aug 23 00:54:24 CEST 2004


Betam4x wrote:

> GCC & G++ 3.4.1
> BinUtils 2.15.90
>
> explorer.cpp:704: error: call of overloaded `wcsstr(TCHAR*&, const 
> wchar_t[9])'
> is ambiguous
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/string.h:119: 
> note: ca
> ndidates are: wchar_t* wcsstr(const wchar_t*, const wchar_t*)
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cwchar:227: 
>
> note:                 wchar_t* std::wcsstr(wchar_t*, wchar_t*)
> explorer.cpp:756: error: call of overloaded `wcsstr(TCHAR*&, const 
> wchar_t[9])'
> is ambiguous
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/string.h:119: 
> note: ca
> ndidates are: wchar_t* wcsstr(const wchar_t*, const wchar_t*)
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cwchar:227: 
>
> note:                 wchar_t* std::wcsstr(wchar_t*, wchar_t*)
> explorer.cpp:758: error: call of overloaded `wcsstr(TCHAR*&, const 
> wchar_t[11])'
> is ambiguous
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/string.h:119: 
> note: ca
> ndidates are: wchar_t* wcsstr(const wchar_t*, const wchar_t*)
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cwchar:227: 
>
> note:                 wchar_t* std::wcsstr(wchar_t*, wchar_t*)
> explorer.cpp:762: error: call of overloaded `wcsstr(TCHAR*&, const 
> wchar_t[10])'
> is ambiguous
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/string.h:119: 
> note: ca
> ndidates are: wchar_t* wcsstr(const wchar_t*, const wchar_t*)
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cwchar:227: 
>
> note:                 wchar_t* std::wcsstr(wchar_t*, wchar_t*)
> explorer.cpp:765: error: call of overloaded `wcsstr(TCHAR*&, const 
> wchar_t[13])'
> is ambiguous
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/string.h:119: 
> note: ca
> ndidates are: wchar_t* wcsstr(const wchar_t*, const wchar_t*)
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cwchar:227: 
>
> note:                 wchar_t* std::wcsstr(wchar_t*, wchar_t*)
> explorer.cpp:767: error: call of overloaded `wcsstr(TCHAR*&, const 
> wchar_t[11])'
> is ambiguous
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/string.h:119: 
> note: ca
> ndidates are: wchar_t* wcsstr(const wchar_t*, const wchar_t*)
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cwchar:227: 
>
> note:                 wchar_t* std::wcsstr(wchar_t*, wchar_t*)
> explorer.cpp:771: error: call of overloaded `wcsstr(TCHAR*&, const 
> wchar_t[9])'
> is ambiguous
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/string.h:119: 
> note: ca
> ndidates are: wchar_t* wcsstr(const wchar_t*, const wchar_t*)
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cwchar:227: 
>
> note:                 wchar_t* std::wcsstr(wchar_t*, wchar_t*)
> explorer.cpp:787: error: call of overloaded `wcsstr(TCHAR*&, const 
> wchar_t[7])'
> is ambiguous
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/string.h:119: 
> note: ca
> ndidates are: wchar_t* wcsstr(const wchar_t*, const wchar_t*)
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cwchar:227: 
>
> note:                 wchar_t* std::wcsstr(wchar_t*, wchar_t*)
> explorer.cpp:790: error: call of overloaded `wcsstr(TCHAR*&, const 
> wchar_t[7])'
> is ambiguous
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/string.h:119: 
> note: ca
> ndidates are: wchar_t* wcsstr(const wchar_t*, const wchar_t*)
> c:/mingw/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cwchar:227: 
>
> note:                 wchar_t* std::wcsstr(wchar_t*, wchar_t*)
> mingw32-make[1]: *** [explorer.o] Error 1
> mingw32-make[1]: Leaving directory `C:/reactos/subsys/system/explorer'
> mingw32-make: *** [explorer] Error 2
>
> C:\reactos>
> _______________________________________________
> Ros-kernel mailing list
> Ros-kernel at reactos.com
> http://reactos.com/mailman/listinfo/ros-kernel
>
> .
>
if you want to use 3.4.1, you have to patch the bug in the mingw headers...

go to

     $MinGW/include/c++/3.4.1/cwchar

change line 226 to this:

  wcsstr(wchar_t* __s1, const wchar_t* __s2)

-- 
------------------------
http://wecanstopspam.org



More information about the Ros-kernel mailing list