Working with wchar in C
Posted
by Richard Mar.
on Stack Overflow
See other posts from Stack Overflow
or by Richard Mar.
Published on 2010-06-03T21:01:58Z
Indexed on
2010/06/03
21:04 UTC
Read the original article
Hit count: 194
I have this code:
#include <stdio.h>
#include <wchar.h>
int main()
{
wchar_t *foo = L"ðh";
wprintf(L"[%ls]\n", foo); return 0;
}
And when I compile it, it gives me the implicit declaration of function ‘wprintf’
warning. I know that I should link the wchar library during compilation, but how do I do that?
© Stack Overflow or respective owner