Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Eh, why can't VS2005 find my include files?

Eh, why can't VS2005 find my include files?

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpvisual-studioquestionlounge
6 Posts 3 Posters 0 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
    largeinsd
    wrote on last edited by
    #1

    Hi, I am creating a dialog based app in VS2005 and I am having an annoying problem: Visual Studio can't see some of my include files, even though they are in the same directory as others it can see. Basically, I am using includes from three locations: [1] System headers [2] headers in the project directory [3] headers in a seperate directory common to a family of projects. I have listed [3] under Properties->General->Additional Include Directories" What it seems like is if VS2005 is working on a header file in place [3] and the file specifies an include located in [2] it won't be able to find it -- unless I move it to [3]. Any help appreciated! @LRG

    CPalliniC 1 Reply Last reply
    0
    • L largeinsd

      Hi, I am creating a dialog based app in VS2005 and I am having an annoying problem: Visual Studio can't see some of my include files, even though they are in the same directory as others it can see. Basically, I am using includes from three locations: [1] System headers [2] headers in the project directory [3] headers in a seperate directory common to a family of projects. I have listed [3] under Properties->General->Additional Include Directories" What it seems like is if VS2005 is working on a header file in place [3] and the file specifies an include located in [2] it won't be able to find it -- unless I move it to [3]. Any help appreciated! @LRG

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      Did you include your headers using double quotes instead of angle brackets?

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      [my articles]

      In testa che avete, signor di Ceprano?

      L 1 Reply Last reply
      0
      • CPalliniC CPallini

        Did you include your headers using double quotes instead of angle brackets?

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        [my articles]

        L Offline
        L Offline
        largeinsd
        wrote on last edited by
        #3

        Yes - all of my includes are as such: In "Joint.h" -- #include "DOF.h" If DOF.h and Joint.h are not in the same directory then VS will not find them... Thanks - @LRG

        M 1 Reply Last reply
        0
        • L largeinsd

          Yes - all of my includes are as such: In "Joint.h" -- #include "DOF.h" If DOF.h and Joint.h are not in the same directory then VS will not find them... Thanks - @LRG

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          VS can't find files without a path. You can add paths for executables/headers/source/etc. in the VS settings at Tools (menu)/Options/Projects and Solutions/VC++ Directories. Mark

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          L 1 Reply Last reply
          0
          • M Mark Salsbery

            VS can't find files without a path. You can add paths for executables/headers/source/etc. in the VS settings at Tools (menu)/Options/Projects and Solutions/VC++ Directories. Mark

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            L Offline
            L Offline
            largeinsd
            wrote on last edited by
            #5

            Hi Mark, Thanks again for your help. My question would be why can't VS figure out that if I am creating a project in a certain directory, that particular directory should be included in the list of paths to search? Eh! Thanks - @LRG

            M 1 Reply Last reply
            0
            • L largeinsd

              Hi Mark, Thanks again for your help. My question would be why can't VS figure out that if I am creating a project in a certain directory, that particular directory should be included in the list of paths to search? Eh! Thanks - @LRG

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              hmm I don't know - that's never happened to me :) Mark

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups