在 .lib 项目中包含外部依赖项 [英] Include external dependencies in a .lib project

查看:37
本文介绍了在 .lib 项目中包含外部依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我有一个包含核心、编辑器和引擎三个项目的解决方案.引擎和编辑器项目都依赖于核心.目前我将核心构建为 .lib,然后编辑器和引擎包含 .lib.哪个工作得很好.

For example I have a solution containing three projects a Core, Editor and Engine. both the Engine and Editor projects are dependent of the Core. Currently I'm bulding the core as an .lib then the Editor and the Engine include the .lib. Which is working perfectly.

但核心依赖于第三方库我似乎无法包含任何外部依赖项,因为在核心项目上将配置类型更改为静态库(dll)时链接器选项卡消失.我应该如何解决这个问题?

But the core depends on third party libraries I can't seem to include any external dependencies due to that the linker tab disappear when changing Configuration Type to Static Library(dll) on the Core project. How should I address this problem?

提前致谢:)

推荐答案

您应该包含所有依赖项并将其构建在一起.如果它们是动态或静态库.

You should include all dependencies and build it all together. If they are either dynamic or static libraries.

这篇关于在 .lib 项目中包含外部依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆