The solutions to the error such as "PRJ0008" or "C2471" or "C1083" or "D8022" or "LNK1103"
来源:互联网 发布:android 查看端口号 编辑:程序博客网 时间:2024/05/01 09:41
Title: You may receive a "PRJ0008" or "C2471" or "C1083" or "D8022" or "LNK1103" or similar error message when you try to build a solution in Visual C++
Symptoms:
- D8022 : Cannot open 'RSP00000215921192.rsp'
- PRJ0008 : Could not delete file 'vc90.idb'.
- C1083 : Cannot open program database file 'vc90.pdb'
- C2471 : Cannot update program database 'vc90.pdb'
- LNK1103 : debugging information corrupt.
Cause:
This problem occurs when all of the following conditions are true:
- You have a solution with more than one project in it.
- Two or more of the projects are not dependent on each other.
- You have parallel builds enabled. (Tools -> Options: Projects and Solutions, Build and Run: "maximum number of parallel project builds" is set to a value greater than 1)
- You are building on a system with multiple CPUs (cores).
- Two or more of the non-dependent projects are configured to use the same Intermediate and/or Output directory.
- A specific race condition in mspdbsrv.exe remains uncorrected.
Resolution:
To resolve the problem do one or more of the following:
- Reconfigure the non-dependent projects to specify an Intermediate and Output directory that is different from one another, e.g. Output Directory = "$(SolutionDir)$(ProjectName)\$(ConfigurationName)", Intermediate Directory = "$(OutDir)".
- Adjust your solution's project dependencies (Project -> Project Dependencies...) so that each is dependent on another.
- Disable parallel builds.
- Add the "/onecpu" boot option to your boot.ini file.
- Change you BIOS settings to enable/use only one CPU.
- File a problem report with Microsoft Technical Support and keep bugging the crap out of them until they eventually fix mspdbsrv.
Status:
The problem is a combination of both a user project configuration error as well as a race condition in Microsoft's "mspdbsrv.exe" utility that does not properly handle more than one thread calling it at the same time for the same file resulting in the file's HANDLE being left open.
Additionally Visual Studio itself and/or its build system (VCBUILD and/or MSBUILD) (or all three!) should be made smart enough to detect and alert the user of such user errors so that corrective action can be taken.
This problem has been around for a LOOOOOONG time.
Applies to:
- Microsoft Visual C++ 2005
- Microsoft Visual C++ 2008
- Others?
- The solutions to the error such as "PRJ0008" or "C2471" or "C1083" or "D8022" or "LNK1103"
- fatal error C1083:'msado15.dll': No such file or directory
- error C1083: 无法打开源文件:No such file or directory
- gcc: error trying to exec 'as': execvp: No such file or directory
- gcc: error trying to exec 'as': execvp: No such file or directory
- Error connecting to database [No such file or directory]
- Why does Quora use MySQL as the data store instead of NoSQLs such as Cassandra, MongoDB, or CouchDB?
- fatal error C1083: 无法打开包括文件:“iostream.h”: No such file or directory
- fatal error C1083: Cannot open precompiled header file: 'Debug/xxx.pch': No such file or directory
- fatal error C1083: 无法打开包括文件:“iostream.h”: No such file or directory
- fatal error C1083: Cannot open include file: 'ProMenu.h': No such file or directory
- fatal error C1083 Cannot open include file 'iostream.h' No such file or directory 的解决方法
- fatal error C1083: Cannot open include file: 'stdlib': No such file or directory
- fatal error C1083: 无法打开包括文件:“iostream.h”: No such file or directory
- fatal error C1083: 无法打开包括文件:“iostream.h”: No such file or directory
- fatal error C1083 Cannot open include file 'iostream.h' No such file or directory 的解决方法
- fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or directory
- fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
- ORA-28001: the password has expired解决方法
- 编程面试的10大算法概念汇总
- ASM 启动报错 ORA-27300, ORA-27301 and ORA-27302: failure occurred at: sskgpsemsper 解决方法
- 动手和总结
- cron 配置
- The solutions to the error such as "PRJ0008" or "C2471" or "C1083" or "D8022" or "LNK1103"
- 3 rendering pipeline
- 初探BeEF
- webservice(二) cxf介绍和用ant发布项目
- Android中Broadcast Receiver组件详解
- 自定义重写Toast
- Scala开发环境选型(2): vim + NERDTree + scala-dist + tmux
- Unsupported major.minor version 51.0
- 【机器学习-斯坦福】学习笔记14 主成分分析(Principal components analysis)-最大方差解释