Fatal Error C2471
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us error c2471 cannot update program database visual studio 2010 Learn more about Stack Overflow the company Business Learn more about hiring developers
Fatal Error C1083: Cannot Open Program Database File
or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up VC2008 compiler errors opening sbr files (C2418 C1903 C2471) up vote 13 down vote favorite 7 EDIT: See my answer below for the hotfix. ORIGINAL QUESTION: In setting up for our boat-programming adventure I have to set up source control and fix project files for a team to use them. (the project was previously only being worked on by one person who took shortcuts with setting up the project includes, etc) I am fixing those SLN and Proj files. When trying to do a build on an external USB drive (I have not tried it on the primary hard drive) I am getting odd errors (lots of them for various files): fatal error C1083: Cannot open compiler generated file: '.\Debug\.sbr': Permission denied These files are referenced in the vcproj file with relative paths in double quotes: RelativePath="..\..\Source\.cpp" I get the same errors form within a sln file in the IDE or if I call msbuild with the sln file. The files are kind of "shared" for a few sln files (projects). The person who originally created the SLN files is not known for being a wizard at configuring MSDev or making things work for teams. Is this an issue with the way the source files are referenced? Any suggestions on how to fix these? This URL does not seem to have helpful information: Fatal Error C1083 on MSDN Note - there were/are still hardcoded paths in the proj file, but i don;t see them for these files. They were mostly for the include and lib dirs. I think I removed them all. I also get these errors: ..\..\Source\.cpp : error C2471: cann
, Windows Desktop Development > Visual C++ Question 0 Sign in to vote I create a new project and create some .h and .cpp files to this project, but when I build the solution by clicking "Ctrl+shift+B", there are two error messages displayed in the OutPut window(PS: it works fine a few minutes ago): http://stackoverflow.com/questions/830980/vc2008-compiler-errors-opening-sbr-files-c2418-c1903-c2471 1>------ Build started: Project: Chpater7, Configuration: Debug Win32 ------ 1>Compiling... 1>Chpater7.cpp 1>c:\documents and settings\zhanzhex\my documents\visual studio 2008\projects\chpater7\chpater7\chpater7.cpp(4) : error C2471: cannot update program database 'c:\documents and settings\zhanzhex\my documents\visual studio 2008\projects\chpater7\chpater7\debug\vc90.pdb' 1>c:\documents and settings\zhanzhex\my documents\visual studio 2008\projects\chpater7\chpater7\chpater7.cpp(4) : fatal error C1083: Cannot open program database file: 'c:\documents and https://social.msdn.microsoft.com/Forums/vstudio/en-US/5f66f6aa-ff42-4548-9902-b8c742e18e7c/error-c2471-cannot-update-program-database?forum=vcgeneral settings\zhanzhex\my documents\visual studio 2008\projects\chpater7\chpater7\debug\vc90.pdb': No such file or directory 1>Build log was saved at "file://c:\Documents and Settings\zhanzhex\My Documents\Visual Studio 2008\Projects\Chpater7\Chpater7\Debug\BuildLog.htm" 1>Chpater7 - 2 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== I located the file vc90.pdb and it is indeed under the path c:\documents and settings\zhanzhex\my documents\visual studio 2008\projects\chpater7\chpater7\debug\ so, could you please tell me how to fix this issue? Tuesday, May 03, 2011 10:27 AM Reply | Quote Answers 1 Sign in to vote That is not terribly uncommon in VC2008 (unfortunately). Try deleting the PDB and building again. Marked as answer by zhexin Tuesday, May 03, 2011 3:25 PM Tuesday, May 03, 2011 2:32 PM Reply | Quote All replies 1 Sign in to vote That is not terribly uncommon in VC2008 (unfortunately). Try deleting the PDB and building
opn program database file:....:No such file or directory here is my code first i have this header file: 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef ONE_H #define ONE_H #include
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "one.h" ItemType :: ItemType (string Name, int d, bool R){ name=Name; discount=d; Return=R; } ItemType :: ItemType (){ name=""; discount=0; Return=false; } int ItemType :: price(int n){ return 0; }; int ItemType :: price(double w){ return 0;}; bool ItemType:: inventoryCheck(int threshold){ return false; }; bool ItemType:: inventoryCheck(double thresh