码迷,mamicode.com
首页 > 其他好文 > 详细

C2471 or LNK1140 errors

时间:2015-03-29 21:04:10      阅读:338      评论:0      收藏:0      [点我收藏+]

标签:

The following errors are normally related to running into the module and size limits when a program database (PDB) file is created (a PDB file contains information used by the debugger; the file has a .pdb extension): 

Compiler Error:

C2471: cannot update program database

Linker Error:

LNK1140 "too many modules for program database; relink with /PDB:NONE"


Linker Error:

LNK1201: error writing to program database "c:\MSDEV\Projects\yourapp\Debug\yourapp.pdb"; check for insufficient disk space

RESOLUTION

There are several ways to reduce the size of PDB files:

  • Build some of the source files with the /Zd switch (line numbers only).

  • Build some of the source files as separate dynamic-link libraries (DLLs) instead of static libraries.

  • Build some of the source files without debug information.

  • Try the compiler switch /Fd"myproject.pdb" (including the quotation marks).



/PDB:NONE 


http://support.microsoft.com/en-us/kb/238875

C2471 or LNK1140 errors

标签:

原文地址:http://my.oschina.net/u/265368/blog/393327

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!