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
Forum Updated to NodeBB v4.3 + New Features

about INCLUDEPATH

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 609 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
    • M Offline
      M Offline
      Mue22
      wrote on last edited by Mue22
      #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..

      i can't use english well...

      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