C2471 or LNK1140 errors

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


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



时间: 03-28

C2471 or LNK1140 errors的相关文章

Kafka Server写数据的时候报错org.apache.kafka.common.errors.RecordTooLargeException

向Kafka中输入数据,抛异常org.apache.kafka.common.errors.RecordTooLargeException 官网两个参数描述如下: message.max.bytes The maximum size of message that the server can receive int 1000012 [0,...] high fetch.message.max.bytes 1024 * 1024 The number of byes of messages to

org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors

最近在项目中发现如下异常: 六月 25, 2015 5:58:34 下午 org.apache.catalina.core.StandardWrapperValve invoke严重: Servlet.service() for servlet springMVC threw exceptionorg.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult


一个jsp里两个或多个<html:errors/>时如何让他们分别显示自己该显示的错误信息 关键字: <html:errors/> 一个jsp里两个或多个<html:errors/> 分别显示错误信息 我在一个jsp里用到了两次<html:errors/>,分别在两个form表单里,可是写了两个之后<html:errors/>, 点任何一个表单中的提交按钮这两个<html:errors/>都会一起显示错误信息, 要想让他们分别显示自己

[Java Web]Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors

手机客户端向服务器提交Http请求时,Tomcat抛出错误: 十二月 31, 2014 2:32:45 下午 org.apache.coyote.http11.AbstractHttp11Processor process信息: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. 经过调试后发现是Tomcat

Referenced file contains errors (http://tiles.apache.org/dtds/tiles-config_3_0.dtd)

java开发时遇到的问题,之前还是好好的,没有错误提示.可是今天一打开项目就出现这种问题.真不知道是怎么回事,在这里求助.错误如下: Referenced file contains errors (http://tiles.apache.org/dtds/tiles-config_3_0.dtd). For more information, right click on the message in the Problems View and select "Show Details...&

Linux常见问题解答--如何修复“tar:Exiting with failure status due to previous errors”

问题: 当我用tar命令来创建一个压缩文件时,总在执行过程中失败,并且抛出一个错误说明"tar:由于前一个错误导致失败退出"("Exiting with failure status due to previous errors"). 什么导致这个错误的发生,要如何解决? 当你执行tar命令时,遇到了下面的错误,那么最有可能的原因是对于你想用tar命令压缩的某个文件中,你并不具备其读权限. tar:Exitingwith failure status due to

Failed to find the style corresponding to the id 2147418306 (6 similar errors not shown)

Android studio在new一个module时看不到布局.报错Failed to find the style corresponding to the id 2147418306 (6 similar errors not shown),其他方法没去研究,就想了一绝招,关闭AS,重新打开.

Mac Error Create Android Project - “Errors running builder &#39;Android Resource Manager&#39; on project”

http://stackoverflow.com/questions/18096315/mac-error-create-android-project-errors-running-builder-android-resource-man 在mac笔记本上运行android eclipse报标题的错误,然后在stackoverflow上找到了答案 18down votefavorite 5 I spent the whole day just trying to create a simple

Python - syntax errors and exception

1. syntax errors (arrow marks) 2. zero division error, name error, type error. 3. try except while True: try: x = int(raw_input("Input:")) break except ValueError: print "Something wrong and re-input" not except will spread this error