I am working on a very large project that has several Visual Studio projects. These projects are built as static libraries and included in the Main project, let's call it Main.exe
.
I have created a new project and built it as a static library, let's call it MyProj.lib
. This library is dependent upon another static library, let's call it API.lib
.
Now, I need to link my project to the Main project. Currently I have both of the static libraries linked to the Main project. I previously asked this question: Link static library in another static library and found out that I can't nest the static libraries. Paul Michalik pointed out that I need to simply link the two libraries independently when I build the Main project.
I now get several LNK2019
errors from the MyProj.lib
library, saying that it can't find the symbols that are defined in the API.lib
library. Visual Studio knows where both of the library files are, so this is very confusing to me. Any ideas?