PDA

View Full Version : Compiler Option /Zc:wchar_t



Vivi
12th April 2013, 10:32
Hi everyone!

I have a problem and I can't resolve it...
I'm working on a project in C++ with Qt4 and I wanted to add BOOST library. But when I added BOOST a lot of linked errors appeared. I found on the forums that I had to add the variable /Zc:wchar_t on the compiler options. Now it works good. The problem is that I create .pro files to make my project with QMAKE and so I want pass the variable on those files.
I tried but it didn't work, only memory variable are added to compiler options and not /Zc:wchar_t...
win32 {
QMAKE_CXXFLAGS -= -Zm200 # Suppression de l'ancienne valeur
QMAKE_CXXFLAGS += /Zm400 # Un peu plus de mémoire pour les entetes pré-compilés
QMAKE_CXXFLAGS += /Zc:wchar_t
}
I can add this variable each time I open my project but it would be better if I can pass it through .pro file...
Is someone who know how to resolve it??

Thanks a lot !

ChrisW67
15th April 2013, 01:43
http://stackoverflow.com/questions/4521252/qt-msvc-and-zcwchar-t-i-want-to-blow-up-the-world