Static library not linking to another static library

I have a project that compiles a static library named StaticA. That library links to another static library, named StaticB. However, when I try to compile a test program to use StaticA, the test program's linker complains it can't find StaticB. Why isn't StaticB contained in StaticA

Thanks

whooo


Answer this question

Static library not linking to another static library

  • CANARY_111

    Is your libpath for the project set correctly Make sure that the consuming project is looking in the directory where you build the .lib file you created. This path can be set under Project Properties > Linker > General > Additional Library Directories. You should probably add something like $(SolutionName)\$(ConfigurationName)

    Thanks,


  • Static library not linking to another static library