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. about INCLUDEPATH
Qt 6.11 is out! See what's new in the release blog

about INCLUDEPATH

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

    in my pro
    INCLUDEPATH +=C:/Users/Lee/Documents/untitled5
    and some head file are in there;
    but however when i want to define a variable in that head file ,i failed
    error: 'Untitled5' was not declared in this scope
    but if i add the real path to the cpp file where the define appare it works
    #include "../untitled5/untitled5.h"
    why?
    ^

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by A Former User
      #2

      hi.

      INCLUDEPATH +=C:/Users/Lee/Documents/untitled5

      this just add to include area. just folder(directory).
      in path, untitled5 is directory name. right?

      so ,
      INCLUDEPATH +=C:/Users/Lee/Documents/untitled5
      and
      #include "untitled5.h"

      then they work you want.

      if it has confusion, you should change the directory name or the file name..

      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