且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

VS2010 总是重新链接项目

更新时间:2023-02-12 17:00:45

原来的问题是 PDB 文件名是在both 编译器设置和链接器设置(同名)下定义的.

Turns out the problem was that the PDB filename was defined under both the compiler settings and the linker settings (with the same name).

这似乎在 VS2010 中引起了一个问题,因为中间目录(编译器输出?)中的旧"pdb 被复制到输出目录(链接器输出?)中的那个.这导致输出目录中的 pdb 比某些 obj 文件旧,并强制下次重新链接(冲洗并重复).

This seemed to cause a problem in VS2010 as somehow an 'old' pdb from the intermediate directory (compiler output?) was being copied over the one in the output directory (linker output?). This resulted in the pdb in the output directory being older than some of the obj files and forcing the relink next time around (rinse and repeat).

清除 pdb 名称设置似乎可以解决问题,默认设置也很好.

Clearing the pdb name settings seemed to fix the problem, and the defaults were fine.