VS2010 always relinks the project

前端 未结 2 1270
伪装坚强ぢ
伪装坚强ぢ 2020-12-30 08:48

I am migrating a complex mixed C++/.NET solution from VS2008 to VS2010.

The upgraded solution works in VS2010, but the build system is always refere

2条回答
  •  萌比男神i
    2020-12-30 09:37

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

    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).

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

提交回复
热议问题