[ros-kernel] Explorer and gcc 3.4.1

Danny Smith dannysmith at clear.net.nz
Sun Aug 15 23:39:41 CEST 2004


----- Original Message -----
From: "Casper Hornstrup"
| Attached patch allows me to build explorer with gcc 3.4.1. Without it
I get:
|
| explorer.cpp: In function `int wWinMain(HINSTANCE__*, HINSTANCE__*,
TCHAR*, int)':
| explorer.cpp:698: error: call of overloaded `wcsstr(TCHAR*&, const
wchar_t[9])'
| is ambiguous
|
C:/MinGW/bin/../lib/gcc/mingw32/3.4.1/../../../../include/string.h:103:
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/cwch
ar:227:
| note:                 wchar_t* std::wcsstr(wchar_t*, wchar_t*)
| explorer.cpp:750: error: call of overloaded `wcsstr(TCHAR*&, const
wchar_t[9])'
| is ambiguous
|
C:/MinGW/bin/../lib/gcc/mingw32/3.4.1/../../../../include/string.h:103:
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/cwch
ar:227:
| note:                 wchar_t* std::wcsstr(wchar_t*, wchar_t*)
|
| This fix will only work for the unicode build. Does anyone have a
better fix?
|

Yes,
http://gcc.gnu.org/ml/libstdc++-cvs/2004-q3/msg00170.html

Danny

| Casper





More information about the Ros-kernel mailing list