Your test programs seems to be for Win32, so I can't recompile for PPC without errors.
Microsoft's runtime is used on PPC, not mine, and apparently it does not contain a wmemcpy function.
In Pelles C version 6.0, the compiler has an intrinsic form of the wmemcpy function (also for ARM). By adding the following (in a separate #include file - or at the beginning of the generated C file, before the first use of wmemcpy) it should work:
wchar_t * __cdecl wmemcpy(wchar_t * restrict, const wchar_t * restrict, size_t);
#pragma intrinsic(wmemcpy)
Another solution, that should work with both version 5 and 6 of Pelles C, would be to define your own wmemcpy function (in the generated C file):
inline wchar_t * __cdecl wmemcpy(wchar_t *s1, const wchar_t *s2, size_t n)
{
for (wchar_t *s = s1; n > 0; s++, s2++, n--)
*s = *s2;
return s1;
}