[Qt-interest] Question about "wchar_t" support on Windows

Yves Bailly yves.bailly at sescoi.fr
Thu Jan 20 16:33:44 CET 2011


Greetings all,

When building projects on Windows using Visual C++, I see the option
-Zc:wchar_t- is set in QMAKE_CFLAGS in %QMAKESPEC%/qmake.conf. This
option tells the compiler to *not* consider "wchar_t" as a native type,
therefore it has to be defined somewhere (typically as an "unsigned short").
This is for either Visual 2005, 2008 or 2010.

I couldn't find any "good" reason for this, does someone have any hint?

Regards,

-- 
      /- Yves Bailly - Software developper  -\
      \- Sescoi R&D  - http://www.sescoi.fr -/
"The possible is done. The impossible is being done. For miracles,
thanks to allow a little delay."



More information about the Qt-interest-old mailing list