vc80.pdb是包含lib的调试信息的文件。在ide Property页面:配置属性:c \ C++:输出文件允许您将其重命名为更合适的内容,例如lib的名称。当链接器将你的lib链接到目标exe时,它会查找这个pdb(在lib中有一个指向它的指针),并从该pdb中提取信息并将其放入exe的pdb中。
/Fd [name]是重命名pdb的选项 /ZI是使用包含Edit and Continue信息的pdb编译的选项。
所有链接的库和最终的taget exe或dll都需要/ ZI来启用编辑并继续。
我做了一个微小的testlib.lib和使用“DUMPBIN/all”来得到以下显示指针调试信息(这是一个很小的摘录):
SECTION HEADER #7
.debug$T name
0 physical address
0 virtual address
48 size of raw data
838 file pointer to raw data (00000838 to 0000087F)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
42100040 flags
Initialized Data
Discardable
1 byte align
Read Only
RAW DATA #7
00000000: 04 00 00 00 42 00 15 15 D5 EA 1E C9 7C 10 3A 40 ....B...Õê.É|.:@
00000010: 93 63 CE 95 77 15 49 4A 03 00 00 00 64 3A 5C 64 .cÎ.w.IJ....d:\d
00000020: 65 76 5C 74 65 73 74 5C 74 65 73 74 6C 69 62 5C ev\test\testlib\
00000030: 74 65 73 74 6C 69 62 5C 64 65 62 75 67 5C 76 63 testlib\debug\vc
00000040: 38 30 2E 70 64 62 00 F1 80.pdb.ñ
标题为+1。 :) – BobbyShaftoe 2008-12-05 06:38:42