【问题标题】:Why doesn't Visual Studio 2015 link to a dependent dll project为什么 Visual Studio 2015 不链接到依赖的 dll 项目
【发布时间】:2016-06-21 03:46:33
【问题描述】:

我曾经使用 Visual Studio 2008。当使用 cpp 应用程序项目和 cpp dll 项目创建解决方案并将应用程序项目的构建依赖项添加到 dll 项目时,VS 会自动将应用程序链接到 dll。但是,VS 2015 似乎并非如此。我必须手动将 lib 文件添加到链接器输入中。我是不是做错了什么?

【问题讨论】:

标签: c++ dll visual-studio-2015


【解决方案1】:

Visual Studio 2010 not autolinking static libraries from projects that are dependencies as it should be supposed to 的答案几乎解决了我的问题。有一点不同:在 VS 2015 中,项目资源管理器中的每个项目的引用都有一个额外的部分,可以在其中设置引用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-12-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-14
    • 1970-01-01
    • 2019-03-09
    相关资源
    最近更新 更多