Results 1 to 3 of 3

Thread: Qt creator 2.7 - how to change/add a compiler flag for a selected compiler?

  1. #1
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt creator 2.7 - how to change/add a compiler flag for a selected compiler?

    (under windows, compiler is autodetected vs2013)

    When I try to compile I am getting the error:

    cl : Command line error D8021 : invalid numeric argument '/FS'

    Question: how to change the compiler flag?

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt creator 2.7 - how to change/add a compiler flag for a selected compiler?

    Examine the project properties (Configuration Properties-> C/C++ ->Command Line) it should suppose to appears some unwanted flags that might look like:

    "/Zm1000 -Wno-deprecated -mwin32 -mthreads /bigobj"

    just remove the marked flag, compilation will complete correctly.
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

  3. #3
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt creator 2.7 - how to change/add a compiler flag for a selected compiler?

    Are you sure you are giving the instructions for QtCreator and not for Visual Studio?

Similar Threads

  1. how to add C++ compiler to QT creator?
    By costa in forum Qt Tools
    Replies: 3
    Last Post: 25th February 2014, 15:44
  2. qt creator and cross compiler
    By RAI32 in forum Newbie
    Replies: 2
    Last Post: 19th January 2012, 08:10
  3. add a compiler flag
    By GrahamLabdon in forum Newbie
    Replies: 2
    Last Post: 18th April 2011, 14:47
  4. Strange compiler behaviour (compiler passes wrong argument)
    By SasaVilic in forum General Programming
    Replies: 2
    Last Post: 2nd November 2010, 11:36
  5. Compiler messages in Qt Creator
    By TorAn in forum Qt Tools
    Replies: 0
    Last Post: 30th June 2010, 04:42

Bookmarks

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.