It drives me crazy - I added a few .hpp files to subdirectories at the root of the existing VC ++ project source directory.
Visual Studio complains about "Error: cannot open the source file ...", but if I right-click on it and select an open document, VS can display it.
I tried:
- "Rescan solution" that does nothing.
- Adding an existing item (both native and using a "filter" - which is a directory?)
- Closing the project and VStudio in vain hope that eventually it will discover the directories / files that I added.
Does VStudio complain that it cannot find these files when it is able to open them? My question is: "How to add a directory containing source files to a VC ++ project that their linker / corrector can see?
(disclaimer; I have never used Visual Studio before or many Microsoft products, so I think this is all very foreign)
source share