[Qt-interest] qmake adds -Zc:wchar_t- to CFLAGS and CXXFLAGS for msvc

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Fri Jul 10 06:31:33 CEST 2009


Vyacheslav V. Yurkov schrieb:
> Hello,
> I use Xerces library in my project..
> As you can see here
> http://xerces.apache.org/xerces-c/faq-build-3.html#faq-2 I need
> -Zc:wchar_t compiler flag but qmake adds the -Zc:wchar_t-.
> I found that the default flags for compiler is defined in
> $QTDIR/mkspecs/win32-msvc2005/qmake.conf and in
> $QTDIR/mkspecs/win32-msvc2008/qmake.conf
> Why Qt uses -Zc:wchar_t- flag as default? Would it be the solution if I
> add these files to my project and change needed parameters?
You need also to recompile Qt if you change this flag (or any other
insidce qmake.conf).


Christian



More information about the Qt-interest-old mailing list