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. Standard include path in generic projects
Forum Updated to NodeBB v4.3 + New Features

Standard include path in generic projects

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 1.5k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    lafrecciablu
    wrote on last edited by
    #1

    Hi,

    When following a C++ language symbol (say "string") in a generic project, I'd like Qt Creator to show me a particular UNIX definition, not the default compiler one (mingw).
    I've added the path to the UNIX standard lib in the <project>.includes.
    But the default compiler one seems to have higher priority.
    (when a symbol is defined only in the UNIX lib, it works.)

    How can I tell Qt to ignore the default compiler standard include path or give it a lower priority in the include lookup?
    Since it's a generic project qmake is not used, and there is no <project>.pro file where I could specify the QMAKE_CFLAGS or QMAKE_CXXFLAGS.

    Version: Qt Creator 2.8.0 on Windows XP SP3.

    Thanks for any help.

    René

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Use a unix compiler then.

      The standard compiler include paths are always used and put first. With Qt Creator 3.0 you are free to define a "Custom tool chain" where you can define all the compiler settings manually, basically for exactly this kind of use case.

      The tricky part there is getting the regexps used to retrieve build errors right in a custom compiler.

      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