如何定义 lib 文件的依赖关系?
如何以编程方式或使用工具(例如 dependent.exe 又名 DLL 的 Dependency Walrer)确定 C++ 中 lib 文件的依赖关系?我特别对 C 运行时版本的定义感兴趣。我的问题是我的DLL在MSVC2010中编译依赖于CRT 8.0。我假设此依赖项继承自某些包含 lib 文件。我想验证这个假设并找到 lib 文件。
此代码包含在自动生成的清单中:
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC80.DebugCRT"
version="8.0.50727.762" processorArchitecture="x86"
publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>
How to determine dependencies for lib-file in C++ programmatically or with a tool (like depends.exe aka Dependency Walrer for DLL)? In particular I am interested in the defining of C-runtime version. My problem is that my DLL, compiled in MSVC2010 depends on CRT 8.0. I assume that this dependency inherited from some include lib-file. I want to verify this hypothesis and find the lib-file.
This code included in auto-generated manifest:
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC80.DebugCRT"
version="8.0.50727.762" processorArchitecture="x86"
publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用随 Visual Studio 一起安装在其 /vc/bin/ 目录中的 dumpbin.exe。
你可以看看:
http://msdn.microsoft.com/en-我们/库/c1h23y6c(v=VS.100).aspx
You can use dumpbin.exe which is installed with Visual Studio inside its /vc/bin/ directory.
You can have a look at :
http://msdn.microsoft.com/en-us/library/c1h23y6c(v=VS.100).aspx