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. QtCreator using wrong boost version
Forum Updated to NodeBB v4.3 + New Features

QtCreator using wrong boost version

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 1.6k 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
    Lindley
    wrote on last edited by
    #1

    I'm trying to use QtCreator in conjunction with the Boost Test library.

    I have an install of Boost 1.54 available, and I've added it to my .pro file's INCLUDEPATH.

    However, when I right-click on
    #include "boost/test/auto_unit_test.hpp"
    it takes me to a file that is clearly from an older version of Boost. A bit of digging makes it appear that QtCreator is pulling the version in /usr/include/boost rather than the one in the INCLUDEPATH. (I realized the problem when including boost/test/unit_test.hpp, as the tutorial suggests, did not work.)

    How can I not only specify an additional include path, but also that it should be preferred to the default system include path?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andrep
      wrote on last edited by
      #2

      It should use the same version that building of the project uses. If building uses one copy of boost, and the code model another, it's a bug and should be reported on bugreports.qt-project.org.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Lindley
        wrote on last edited by
        #3

        It's not a mismatch. I just don't know how to disregard the installed version.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Lindley
          wrote on last edited by
          #4

          Okay, now I think I have a mismatch. I've finally gotten my .pro file to the point where it seems to be building correctly. My boost 1.54 area is in the include path for g++ in the compile output, and there are no errors reported from the build.

          However, when I hover the mouse over an include, the tooltip that pops up still points to the wrong file, and the syntax highlighting still indicates errors.

          This might be related to the fact that I am using a system() call in the .pro file to determine the include path by running an external program.

          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