Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Include files
Forum Update on Monday, May 27th 2025

Include files

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 4 Posters 4.7k 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.
  • T Offline
    T Offline
    Taamalus
    wrote on 27 Oct 2010, 00:53 last edited by
    #1

    Maybe it's my age, but where does one specify one's headers? I'm moving from 'another' IDE to QT4. The other had a menu where I specified directories where headers and libraries are located, that are to be included in the program.

    The Help file made some reference to the possibility, but I have not found any concrete instruction on how to actually go about it. It might be in one of the tutorials. A link will do. It seems very basic task everyone knows, except yours truly. :)

    ... time waits for no one. - Henry

    1 Reply Last reply
    0
    • A Offline
      A Offline
      anselmolsm
      wrote on 27 Oct 2010, 02:12 last edited by
      #2

      Hm... I don't know how to do it with menus in Qt Creator (I use emacs =P), but as a start, I can say you need to add the paths to headers to the INCLUDEPATH variable and libraries goes to the LIBS variable, both in the .pro file of your project. :-)

      Let's wait a little until someone who is more habituated with Qt Creator answer :-)

      Anselmo L. S. Melo (anselmolsm)

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pavanesh
        wrote on 27 Oct 2010, 03:17 last edited by
        #3

        Anselmolsm Yes we have to add the all the header files path, Library paths to System PATH variable. It will work

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on 27 Oct 2010, 09:52 last edited by
          #4

          Just for curiosity: Which IDE or build system do you use together with Qt? I'm not aware of any that evaluates a single PATH variable for both headers and libs...

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Taamalus
            wrote on 27 Oct 2010, 23:33 last edited by
            #5

            To anselmolsen: Thanks. You were right on target. As seconded by Pavanesh. It does work, even for me; the proverbial Hello program did compile just right now.

            To Volker: A little known IDE called wxDev-C++. You open the environment menu, and simply choose and click, where the include files are, libraries, where your targets ought to be and so on. The IDE not in the professional class off IDEs, (neiher am I btw) but once you're done selecting, the path(s) are written into a 'make' file for any compiler you choose. Very fast, and you don't worry about a typo. I love this IDE, but unfortunately, my hobby is growing and I have to move on.

            To all: Thanks for those quick responses. :D

            ... time waits for no one. - Henry

            1 Reply Last reply
            0

            1/5

            27 Oct 2010, 00:53

            • Login

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