POLINK: error: Unresolved external symbol 'wcscpy_s'.

Started by jasch212, April 05, 2010, 04:58:50 PM

Previous topic - Next topic

jasch212

hello,
does anyone know which lib i must add in the projectSettings to link with wcscpy_s ?
i am using 5.0
thanks

JohnF

Looking at the header (wchar.h) I don't think wcscpy_s is available for the Pocket PC.

John

jasch212

hello john,

i found:
errno_t __cdecl wcscpy_s(wchar_t * restrict, rsize_t, const wchar_t * restrict);

in pellec/include/wchar.h

and in the PelleHelp for wcscpy the first sentence:

"Purpose:
Copies a wide string. The safer wcscpy_s function is also available."

thomas


JohnF

Hello Thomas,

If you look in that header you will find

/* more secure C functions (TR24731-1) */
#if __STDC_WANT_LIB_EXT1__ && !defined(_WINCE)

which excludes that function from WINCE.

The reason not all functions are included in WINCE is to save room, I've heard.

John

jasch212