Results 1 to 2 of 2

Thread: Compiler Option /Zc:wchar_t

  1. #1
    Join Date
    Apr 2013
    Qt products

    Default Compiler Option /Zc:wchar_t

    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 !

  2. #2
    Join Date
    Mar 2009
    Brisbane, Australia
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Unix/X11 Windows
    Wiki edits

Similar Threads

  1. Qt has wchar_t as non-native?
    By Wasabi in forum Newbie
    Replies: 7
    Last Post: 22nd December 2010, 20:08
  2. Strange compiler behaviour (compiler passes wrong argument)
    By SasaVilic in forum General Programming
    Replies: 2
    Last Post: 2nd November 2010, 11:36
  3. QString -> wchar_t*
    By elizabeth.h1 in forum Qt Programming
    Replies: 0
    Last Post: 26th October 2009, 09:34
  4. QString to wchar_t
    By rajveer in forum Qt Programming
    Replies: 1
    Last Post: 4th September 2008, 06:11
  5. QString and wchar_t?
    By jamos in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2006, 18:45


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.