Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QMAKE does not parse Compiler/Linker Flag for Visual Studio

QMAKE does not parse Compiler/Linker Flag for Visual Studio

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 6.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wamo
    wrote on last edited by
    #1

    Hello,

    i want to pass additional compiler flag @/Zp[16]@ and a linker flag @/OPT:RREF@ to visual studio via *.pro file which looks like this

    @QMAKE_CXXFLAGS_RELEASE += -MP$(NUMBER_OF_PROCESSORS) /Ox /Ob2 /Oi /Ot /Oy /GL /Zp[16] /arch:SSE2 /openmp
    QMAKE_LFLAGS_RELEASE += /LTCG /OPT:RREF /OPT:ICF@

    file but it does not work. I get the following warnings:

    @WARNING: Could not parse Compiler option: /Zp[16], added as AdditionalOption
    WARNING: Could not parse Linker options: /OPT:RREF, added as AdditionalOption@

    Any idea how to escape this? The parameters are not activated in VS after the sln and proj files are generated.

    Thanks in advance

    EDIT:
    I solved this with: "/Zp16" for the compiler
    and linker flag /OPT:REF /OPT:ICF

    1 Reply Last reply
    0
    • B Offline
      B Offline
      brcontainer
      wrote on last edited by
      #2

      Hi wamo!

      Please, try this:

      http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/

      QT project: https://github.com/brcontainer/qt-helper

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved