I've made a static library with some .h
files and need to include that library into my second project, which will also be output as a library. After copying first .lib
file into the current project source folder, adding it (maybe redundantly) as an Additional Dependencies Directory and adding the .lib
file itself as an Additional Dependency, I get
cannot open source file "Person.h"
error output when I try to compile it, despite having
#include "Person.h"
in my current .h
file I've started working on. What have I missed?
Edit: I've added the original project's source folder under Additional Include Directories and it seems to work, but I'm confused - how does that help me with using the pre-made .lib
file if I'm just referencing the headers from another project anyway?
Edit: I'd appreciate it if negative feedback is followed by at least a short comment so I can know what to improve. Thanks.