Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. The IDE
QtWS25 Last Chance

The IDE

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 699 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.
  • A Offline
    A Offline
    ArbolOne
    wrote on last edited by
    #1

    How do I add options to the compiler/linker using the Qt IDE?

    Thanks

    This is not the first time you've been here, at the end you've always lost. You create viruses and we the cure, and in this battle you've always lost.

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      By adding apppropriate entries in the .pro file:
      "QMAKE_CXXFLAGS":http://qt-project.org/doc/qt-5.0/qtdoc/qmake-variable-reference.html#qmake-cxxflags and "QMAKE_LFLAGS":http://qt-project.org/doc/qt-5.0/qtdoc/qmake-variable-reference.html#qmake-lflags

      There are also variables for different configs like release, debug, shared lib, console etc.

      Also there are some portable options for things like linking libraries (LIBS), setting additional include paths (INCLUDEPATH), defining symbols (DEFINES) etc.
      Take a look at the list in the links above.

      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