Search code examples
visual-studiovisual-c++static-librariesstatic-linking

Can I include an existing static library in my own static library project?


I am creating a static library project in visual studio for personal use, and I'd like to include another existing static library into my own static library.
Usually (for executible projects) I can set up extra include and lib directories in the project's properties, but this time the menues are different and I don't know which settings to use. How would I do that?


Solution

  • I figured out a sort of hacky way to make it work. I just included the library normally as I would in a normal project, and only after that I changed the project type to .lib.
    Apparently the additional dependencies get saved after changing the type of the project even though the respective menus in the project configuration pages disappear.