Hello Brett,
This is an abstract from service request answer.
In order to add wchar support it is necessary to set the corresponding macros and they must be rebuilt. I tried setting the macros below but I got errors. Then I undo changes and rebuilt libraries as normal and tried method 2 and it worked.
_EWL_WIDE_CHAR
_EWL_WFILEIO_AVAILABLE
_EWL_OS_DISK_FILE_SUPPORT
I took fwprintf.c from its original location (C:\Freescale\CW MCU v10.6\MCU\ARM_GCC_Support\ewl\EWL_C\src\wchar) and created a copy in my project. Then in project properties (menu Project > Properties > C/C++ Build > Settings > Compiler > Preprocessor) added the macros below.
_EWL_WIDE_CHAR=1
_EWL_OS_DISK_FILE_SUPPORT=1
As there is no prototype of the function I recommend to write a prototype at the top of the file to avoid compiler confusion.
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------