问题描述
在VS2010中,有一个选项可以在链接器下为exes / dll生成调试信息,但在 librarian 调试信息是否嵌入到静态库中?
In VS2010 there is an option to generate debug info for exes/dlls under linker but no such option under librarian for libs. Is the debug info embedded in the static library?
在 C / C ++ 属性中有一个选项, 用于libs,exes和dll。默认情况下,它进入我的中间目录,并命名为libs的项目名称,但对于exes / dll命名为 vc $(PlatformToolsetVersion).pdb 。这个选项的pdb是什么,它和链接器选项中的pdb有什么不同?
There is an option in the C/C++ properties for Program Database File Name for libs, exes, and dlls. By default it goes into my intermediate directory and is named the project name for libs, but is named vc$(PlatformToolsetVersion).pdb for exes/dlls. What's the pdb from this option and how does it differ from the pdb in the linker option?
如果我提供一个库和头文件如何提供调试符号
If I am supplying a library with libs and headers how do I supply debug symbols to a user of my library?
如果你使用/ ZI或/ Zi(C / C ++ - > General - > Debug),你可以使用我的库的用户?
推荐答案
然而,我不建议发布静态库,因为它通常绑定到一个特定的版本的编译器。
I wouldn't advise distributing a static library, however, since it's generally tied to a specific version of the compiler.
这篇关于静态库调试符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!