Static library debug symbols

前端 未结 5 373
Happy的楠姐
Happy的楠姐 2020-11-30 19:14

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 t

5条回答
  •  醉梦人生
    2020-11-30 19:48

    Static libraries are implemented into the programs that use them.

    If the program that uses them is using debug symbols, the compiled library code in that program will have symbols too.

    PDB info from wikipedia:

    When debug symbols are embedded in the binary itself, the file can then grow significantly larger (sometimes by several megabytes). To avoid this extra size, modern compilers and early mainframe debugging systems output the symbolic information into a separate file; for Microsoft compilers, this file is called a PDB file.

提交回复
热议问题