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. [SOLVED] Builderror C1083 nevertheless using correct INCLUDEPATH in the pro file and #include directive
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Builderror C1083 nevertheless using correct INCLUDEPATH in the pro file and #include directive

Scheduled Pinned Locked Moved Qt Creator and other tools
8 Posts 3 Posters 4.4k 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.
  • D Offline
    D Offline
    DiebBlue
    wrote on last edited by
    #1

    Hello,

    I have some problems with including header files from a different directory.

    For example, i have tried to include the shared_ptr.hpp Headerfile from the Boost-Library:

    I have added the additional include path in my *.pro file:
    INCLUDEPATH += /src/Boost/boost_152_0

    In my *.cpp File, I have added this line:
    #include <boost/shared_ptr.hpp>

    The parsing-step under the QT-Creator (v 2.6.1) works fine. For example, if i go with my mouse-pointer over the line #include <boost/shared_ptr.hpp> than the correct path "C:\src\Boost\boost_152_0\boost\shared_ptr.hpp" is visualized in a small popup-window. Even the jump function works fine and the include file shared_ptr.hpp will be opened correctly in the qt-creator.
    But just the build (QT 5.0.0 and Visual C++ 2010 x86 Compiler) don't works. I get the error C1083 ("can not open include file").
    Has anyone please an idea to solve this problem?

    Greets
    DiebBlue

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      The only thing I see is that the drive letter is missing. Change to:
      @
      INCLUDEPATH += c:/src/Boost/boost_152_0
      @

      Try it even when it sounds odd. In general c should be the default drive.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DiebBlue
        wrote on last edited by
        #3

        Hey koahning, thanks for you reply.

        I have also already tested your suggestion with the full path (including the drive letter c:)

        INCLUDEPATH += c:/src/Boost/boost_152_0

        but unfortunately it also don't works. :-(

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          Did you rerun qmake?
          You can check also the generated makefiles to make sure that changes are in there.
          Are you using nmake or jom for build?

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DiebBlue
            wrote on last edited by
            #5

            I have simply used the (re-)build button from the qt-creator :-). For build jom will be used. In my makefiles the includedirectory c:/src/Boost/boost_152_0 is still missing.

            1 Reply Last reply
            0
            • K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              You should rerun qmake I guess.

              Go to in the projects menu on to the project and press the right mouse button. Below "Build" you find "run qmake".

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              0
              • D Offline
                D Offline
                DiebBlue
                wrote on last edited by
                #7

                YES, that works fine. I am so happy :-). Thank you a lot.

                Bye
                DiebBlue

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  randyna
                  wrote on last edited by
                  #8

                  Thank you, Koahnig. I spent over 5 hours trying to get this to work before stumbling on to your suggestion re qmake.

                  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