IAR EWARM wchar_t

By spinpin , 8 September 2014

Hello.

I am using compiler IAR for ARM 7.20 and trying to build example application "STM32F4_MD6".

In the process of linking the project next warning appears:
"Warning [Lt009]: Inconsistent wchar_t size"

I would like to know whether it is possible to rebuild libmpllib.a with the size of wchar_t = 16bit or some way to specify IAR use wchar_t = 32bit?

Thanks in advance.

vtoomu

11 years 5 months ago

Do you have any update on this issue? I also encounter the issue with IAR 7.10 for cortex-M4.

Thanks.

phpbb Post ID
25791

guy_mcilroy

11 years 5 months ago

Certain compilers specify that a wchar should be 32-bits, Kiel however wants it to be 16-bits. IAR just has a warning on this and Code Composer the error can be suppressed. This should not be a blocker.

phpbb Post ID
25794

bwillistein

11 years 4 months ago

I have the same problem. IAR ARM 7.10


Warning[Lt009]: Inconsistent wchar_t size
D:ProjectsXXXObjXXX.o and 194 other objects have wchar_t size 16 bits
heading_from_gyro.o(libmpllib.a) and 7 other objects have wchar_t size 32 bits


How I can remove this warning? (without direct disable warning, using warning code)

It is important for me I need get rid of warning.
phpbb Post ID
25797

bwillistein

11 years 4 months ago

Support team, you will can answer, why you use 32bit w_char?

Thanks for your reply.

phpbb Post ID
25800

guy_mcilroy

11 years 4 months ago

You can override the typedefs by defining your own typedefs.

phpbb Post ID
25803

bwillistein

11 years 3 months ago

@sectionsbest wrote:

You can override the typedefs by defining your own typedefs.

dont work.

Сan You provide your solution?
phpbb Post ID
25806
phpbb Topic ID
16581