[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] wide-char and g++



Andreas Schwab, 17.04.2013 10:20:15:

"Helmut Karlowski" <helmut.karlowski@ish.de> writes:

size_t wcslen(wchar_t const* s)
{
  return wcslen( (const wchar_t*)s);
}

it works, i.e. the symbol is found.

Of course it "works", you are calling the very function you just
defined, recursively.

So the linker decides between wcslen(wchar_t const* s) and wcslen(const wchar_t * s) but not the compiler? Strange ..

--
Helmut Karlowski