Linking to a static lib that links to a static lib

情到浓时终转凉″ 提交于 2019-12-25 00:54:08

问题


I have a (managed/unmanaged C++) winforms app that links to a static library. That library links to another static library. When I do a Rebuild on the Winforms project, Visual Studio 2005 attempts to rebuild the references static library, but does not rebuild deeper than one level. This causes me to have to manually rebuild the leaf project and then rebuild up the chain to the Winforms project. Is there a way to force a deeper rebuild?


回答1:


Should I just add all static libs as dependancies to the Winform app?




回答2:


Sure. Just make sure the n-th level library project is in the same solution, and the immediately dependent library has a dependency on it. VS should rebuild both. This works for native C++ at least, and should work for managed too IFAIK.



来源:https://stackoverflow.com/questions/530420/linking-to-a-static-lib-that-links-to-a-static-lib

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!