Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wide character array initialized from incompatible wide string #2549

Open
shijiameng opened this issue Dec 14, 2018 · 0 comments
Open

wide character array initialized from incompatible wide string #2549

shijiameng opened this issue Dec 14, 2018 · 0 comments

Comments

@shijiameng
Copy link

Hi,

We need wide characters (unicode) in our program, so we used wchar_t type to store wide strings as such form: wchar_t str[] = L"foo"; However, it couldn't be compiled with an error, saying "wide character array initialized from incompatible wide string", while in ubuntu, it was OK through gcc.
Is there any extra setting to support such wchar_t?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant