Search code examples
c++visual-studiovisual-c++-2005

C++ Project dependencies issue Visual studio 2005


I am working on a dataManagement project that periodically deletes files in a specific folder. The solution has three projects of which, one is the application and the other two are static libraries. Now I want to add one more project which is a static library used for logging. The logging static library project has a header file which the application project refers. When I build the solution, I am getting error as the header file is not found. When I added the logging static library project, I also made the application project dependent on it by checking the appropriate bix in the project dependencies. Can anyone please help me?


Solution

  • It needs an additional include file path to reference the header file directory...

    Project->Properties->Config Properties->C/C++->Additional Include Directories

    it doesn't auto pick up the header file paths, it just knows how to link to the project.... Its completely undefined where the header file should be. or even if you have a header file, you can forward reference the thing in the other project if you like!