7.174 --wchar, --no_wchar

Permits or forbids the use of wchar_t.

It does not necessarily fault declarations, providing they are unused.

Usage

Use this option to create an object file that is independent of wchar_t size.

Restrictions

If --no_wchar is specified:
  • wchar_t fields in structure declarations are faulted by the compiler, regardless of whether or not the structure is used.
  • wchar_t in a typedef is faulted by the compiler, regardless of whether or not the typedef is used.

Default

The default is --wchar.
Related reference
7.175 --wchar16
7.176 --wchar32
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.