from compiler output and tests, it seems that on Teensy WCHAR_T is defined as 32 bit.
to compile SW to be used with exFAT, one way is t define WCHAR_T as 16 bit (after all exFAT is Microsoft and wondows uses 16 bit wchar_t)
I did this by adding a compiler flag to boards.txt :" -fshort-wchar "
However, now the complier (loader) generates warnings of this type
To me it seems that system libraries use a 32 bit wchar_t definition
what is the best way to handle this?
Using the " -fshort-wchar " compile switch?
Are there specific reasons for Teensy arm toolchan to be compiled without "-fshort-wchar "?
to compile SW to be used with exFAT, one way is t define WCHAR_T as 16 bit (after all exFAT is Microsoft and wondows uses 16 bit wchar_t)
I did this by adding a compiler flag to boards.txt :" -fshort-wchar "
However, now the complier (loader) generates warnings of this type
Code:
warning: .... uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
To me it seems that system libraries use a 32 bit wchar_t definition
what is the best way to handle this?
Using the " -fshort-wchar " compile switch?
Are there specific reasons for Teensy arm toolchan to be compiled without "-fshort-wchar "?