Here's a paste of lines 939..956 from file /stdcxx-4.2.1/include/ansi/cwchar:
extern "C" {
inline wchar_t* wcsrchr (wchar_t *__s, wchar_t __c)
{
const wchar_t *__ss = __s;
while (*__ss++);
while (--__ss != __s && *__ss != __c);
return *__ss == __c ? __ss : 0;
}
} // extern "C"
inline const wchar_t* wcsrchr (const wchar_t *__s, wchar_t __c)
{
return wcsrchr (_RWSTD_CONST_CAST (wchar_t*, __s), __c);
}
} // extern "C"
If function wcsrchr on line 951 of file cwchar can't be extern "C", then
there appears to be an extraneous:
} // extern "C"
on line 956.
Martin Sebor-2 wrote:
>
>
>>
>>
>> i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/../include/wchar.h:217:
>> error: previous declaration `wchar_t* wcsrchr(const wchar_t*, wchar_t)'
>> here
>> i:/apps/stdcxx-4.2.1/include/ansi/cwchar: In function `wchar_t*
>> wcsrchr(wchar_t*, wchar_t)':
>>
>> Also, it looks like there's an extern "C" { missing before the
>> declaration
>> of function wcsrchr on line 951 of file cwchar:
>
> No, that function is a C++ overload of the C function. It can't
> be extern "C" (C doesn't allow overloading).
>
> Martin
>
>
--
View this message in context:
http://www.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20695299.html
Sent from the stdcxx-user mailing list archive at Nabble.com.