A coworker of mine quit today and I was handed some of her projects.
She gave me a Visual Studio project folder. In it are 30 cpp
and 30 h
files.
When I opened the vcproj file, it prompted me that it was created using visual studio 10 and since I have vs 12, I chose the update prompt.
I then proceeded to build the project. However, 29 errors come up saying the foo.h, bar.h... could not be opened. No such file or directory.
Error:
cannot open include file: 'includedFile.h'; no such file or directory.
I found other posts that also talked about these issues. However, I don't think these links apply since all of the header files are in the same folder structure as my project and its corresponding cpp
file.
Example Folder Structure:
>ProjectFolder |- project.vcxproj |- main.cpp |- main.h |- foo.cpp |- foo.h |->Debug |->Res
Do I have to manually add each of the header files to the include as noted by the following comment from the 2nd reference above?
Go to your Project properties (Project -> Properties -> Configuration Properties -> C/C++ -> General) and in the field Additional Include Directories add the path to your .h file.