LNK1201 Visual C++ 2010 Large project failing to generate PDB

梦想与她 提交于 2019-11-30 03:27:58
Barry

There is indeed a max limit of 1GB for the pdb size. There is some trick to extend this to 2GB (more info about that can be found Here). Basically you have to generate the initial pdb file yourself instead of the compiler.

Other things you could do is do some active hoisting on your template code as this might effect your pdb sizes also.

I put together a test program with 1000 cpp files, each cpp with one function, that instantiated 500 unique template types.

Link.exe failed when the PDB file reached: 1048575 KB.

Appears to be some sort of hard limit at 1 GB in the PDB format or in LINK.exe.

Have you tried to reduce the number of parallel builds. A setting sometwhere in the IDE. On VC9 we had a similar problem and our only solution was to reduce the number of local builds. Could it be a memory problem as well? Are you using VC 10 SP1?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!