M
Me
I am trying to compile some code Ive gotten from another and
I know I need a 16 bit unicode string, for he passes the pointer to
functions
that take a (uint16 *), however there are initializations that look like
this.
typedef unsigned short int ucs2_char;
....
....
....
static const ucs2_char form_feed[] = L"\f";
The above like in gcc give me the compiler error: 'invalid initializer'
When I change it to the following, everything works fine.
static const ucs2_char *form_feed = L"\f";
What is up with this error?
I know I need a 16 bit unicode string, for he passes the pointer to
functions
that take a (uint16 *), however there are initializations that look like
this.
typedef unsigned short int ucs2_char;
....
....
....
static const ucs2_char form_feed[] = L"\f";
The above like in gcc give me the compiler error: 'invalid initializer'
When I change it to the following, everything works fine.
static const ucs2_char *form_feed = L"\f";
What is up with this error?