I have an overall solution with two projects (let's say proj1
and proj2
) within it. In proj1
there's a file called foo.cpp
and a corresponding foo.h
. In proj2
I use #include "../proj1/foo.h"
so that's taken care of, but I get linker errors, and I suspect this is because it doesn't have access to foo.obj
.
Is there a way to set up the project preferences so that proj2
can link to proj1
source files without having to copy them over from project to project? I'm not linking to any external libraries if that makes it easier.