I am working in VS 2008 and have several C++ projects and want to build my own library to share across projects. The first project is called “Project 1”.
I created the library as a separate Win 32 project, and chose DLL. I added a reference in Project 1 to the library using “Add reference”. I also added an “Additional reference search path”. I added #include “Library.h” to the top of the cpp file for Project 1.
However, I am getting the error: fatal error C1083: Cannot open include file: ‘Library.h’: No such file or directory.
How do I do this?
Thanks!
If the projects are in separate folders, you may have you do something like: