This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
wide char support and -fshort-wchar option
- From: Mallikarjun Goudar <mallikarjun dot gouda at gmail dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 31 Jul 2014 14:01:40 +0530
- Subject: wide char support and -fshort-wchar option
- Authentication-results: sourceware.org; auth=none
Hi,
I would like to use wchar_t as unsigned short. I used -fshort-wchar
option to make this happen.
But i get following warnings when compile and link a test case.
'libc.a(ansi_files.o) uses 4-byte wchar_t yet the output is to use
2-byte wchar_t; use of wchar_t values across objects may fail"'
To resolve this, i should be rebuilding gcc libraries with -fshort-wchar option?
Please let me know.
Thanks,
Mallikarjuna