“链接库依赖关系”是什么链接器选项实际上在Visual Studio 2010中?

编程入门 行业动态 更新时间:2024-10-26 12:22:04
本文介绍了“链接库依赖关系”是什么链接器选项实际上在Visual Studio 2010中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

直到VS2008,您可以在解决方案文件(项目依赖关系... )中设置您的本机C ++ 项目依赖关系,如果(by链接器选项

Up to VS2008, you set your native C++ project dependencies up in the solution file (Project Dependencies ...) and if (by default) the Linker Option

Properties -> Linker -> General : Link Library Dependencies = Yes

设置,Visual Studio Build将自动链接到 .lib 该项目依赖的所有项目(DLL,LIB)的文件将被静态链接。

is set, the Visual Studio Build will automatically link in the .lib files of all projects (DLLs, LIBs) that this project is dependent on will be "statically" linked in.

侧面注意:Microsoft更改了依赖关系在 VS2010 中的工作原理,现在您应该将依赖项直接添加到项目中

Side Note: Microsoft changed how the dependencies worked in VS2010 and you are now supposed to add the dependency directly to the project

Common Properties -> Framework and References : (List of depenencies) (each lib/dll has a separate option: Project Reference Properties -> Link Library Dependencies : True|False

我很好,这是不这个问题是什么。 / em>

I'm fine with that. This is not what this question is about.

(这里有一个解释:灵活的项目到项目参考。)

(One explanation here: Flexible Project-to-Project References.)

仍然可能仍然可以在Solution级别定义项目依赖关系,而 General Linker选项也是仍然但是它不起作用,请参阅:

It is still possible however to define project dependencies on the Solution level and the General Linker option is also still there. However it doesn't work. See:

  • Visual Studio 2010是否破坏了项目依赖关系在C ++项目之间?
  • Visual Studio 2010不会将依赖关系的项目自动链接到应用程序
    • 但奇怪的是,没有删除旧的UI,或以任何方式表示它不再有效
    • Link Library Dependencies not working?
    • Did Visual Studio 2010 break "Project Dependencies" between C++ projects?
    • Visual Studio 2010 not autolinking static libraries from projects that are dependencies as it should be supposed to
      • "but oddly enough, without removing the old UI, or in any way indicating that it no longer works"
      • MS Connect Bug 586113:链接库依赖关系不起作用
      • MS Connect Bug 586113: "Link Library Dependencies" does not work

      哪里Microsoft确认链接器选项不做其他的事情世界人口预计会这样做,并增加以下解释:

      Where Microsoft confirms that the Linker Option doesn't do what the rest of the world's population expects it to do, and adds the following explanation:

      感谢您报告此反馈。您遇到的问题是设计。 链接库依赖关系是一个标志,仅指示是否将库作为输入传递给链接器。它不会自动找到依赖关系。作为客户,您将必须根据您的建议手动定义后端。

      Thanks for reporting this feedback. The issue you are experiencing is by design. "Link Library Dependency" is a flag that only dictates whether or not to pass the library as an input to the linker. It does not find the dependency automatically. As a customer you will have to define the depedency manually as you suggest.

      可以任何人解释什么意味着或更多的内容:Visual Studio 2010中实际执行的链接库依赖关系链接器选项是什么?

      链接器的输入是什么,实际上没有链接?

      What is an "input to the linker" that isn't actually linked supposed to be?

      推荐答案

      你必须给出设置适当的值以使清晰度:

      You have to give the setting the proper value to bring clarity:

更多推荐

“链接库依赖关系”是什么链接器选项实际上在Visual Studio 2010中?

本文发布于:2023-11-02 14:01:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1552598.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:选项   链接库   关系   链接   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!