C++ - Can you build one static library into another?

前端 未结 6 2085
时光说笑
时光说笑 2020-12-16 00:43

I ran into a strange problem with a Visual Studio 2008 project I was working with recently.

I am trying to compile a new static library that uses functions from anot

6条回答
  •  悲&欢浪女
    2020-12-16 01:30

    Just document the dependencies of your lib.

    As long as the library you depend on is available to anyone that could use your library, this is the preferred solution. Especially considering that the library user could also depend on this platform SDK lib - if you had it embedded then he'd get funny linker errors with multiply defined symbols.

提交回复
热议问题