[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] wide-char and g++
I'm trying to compile unrar for MiNT. Now that mintlib has
wide-char-support it's worth a try.
I updated mintlib from cvs to get the wide-char-support, and ran into the
strlist.o:strlist.o:(.text+0x20a): undefined reference to
`wcsncpy(wchar_t*, wchar_t const*, unsigned long)'
These symbols exist in libc.a, but the prototype in wchar.h has const
wchar_t* for the second argument.
When I write a function for example:
size_t wcslen(wchar_t const* s)
return wcslen( (const wchar_t*)s);
it works, i.e. the symbol is found.
On cygwin the prototypes are the same, but the build succeeds. Is there a
compiler-switch for this issue, or another solution (except supplying all
the missing functions)?
I'm using Vincent's cross-compiler.