Why am I getting error C1033: cannot open program database in VS 2010

After a long break with C ++, I am trying to compile a very simple C ++ project in VS2010. I created an empty Win32 C ++ project pool, I selected No precompiled headers and other MS libraries. I added the following main.cpp file:

#include <iostream>
#include <string>

using namespace std;

class A
{
public:
  string name;
};

int main(int argc, char** argv)
{
  return 0;
}

When compiling, I get a notorious error:

1>------ Build started: Project: TestGetline, Configuration: Debug Win32 ------
1>  main.cpp
1>main.cpp : fatal error C1033: cannot open program database ''
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Here are some facts:

  • I am using the 64-bit version of Windows 7 as a virtual machine with Desktop Parallels: version 6.1.7601 SP1 for build 7601. The virtual machine has a common profile, which means document folders, downloads, etc. OSX and Windows 7.

  • VS 2010 version: Microsoft Visual Studio 2010, version 10.0.40219.1 SP1Rel, Microsoft.NET Framework version 4.0.30319 SP1Rel

  • , VS 2010, Windows XP (Service Pack 3). .

  • , , . , mspdbsrv.exe(VS 2010 ), , . Debug Information Format C7, (main.cpp: C1074: "IDB" PDB :). VS 2010 , , . , , .

? , -, ++ VS 2010. VS 2012 2013 .

, , :

 1>Target "ClCompile" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets" from project "C:\projects\cpp\TestGetLine\TestGetline\TestGetline.vcxproj" (target "_ClCompile" depends on it):
   Using "Delete" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
   Task "Delete"
   Done executing task "Delete".
   Task "CL" skipped, due to false condition; ('%(ClCompile.PrecompiledHeader)' == 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true') was evaluated as ('' == 'Create' and ''!='true').
   Using "CL" task from assembly "Microsoft.Build.CppTasks.Win32, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
   Task "CL"
     Forcing recompile of all source files due to missing PDB "Debug\vc100.pdb".
     Environment Variables passed to tool:
       VS_UNICODE_OUTPUT=1328
     c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /nologo /W3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc100.pdb" /Gd /TP /analyze- /errorReport:prompt main.cpp
     Tracking command:
     C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\Tracker.exe /d C:\Windows\Microsoft.NET\Framework\v4.0.30319\FileTracker.dll /i C:\projects\cpp\TestGetLine\TestGetline\Debug /r C:\PROJECTS\CPP\TESTGETLINE\TESTGETLINE\MAIN.CPP /b MSBuildConsole_CancelEvent7f4b09d9e64d472facf5c417755b2cdd  /c "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe"  /c /Zi /nologo /W3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc100.pdb" /Gd /TP /analyze- /errorReport:prompt main.cpp
     main.cpp
 1>main.cpp : fatal error C1033: cannot open program database ''
     The command exited with code 2.
   Done executing task "CL" -- FAILED.
 1>Done building target "ClCompile" in project "TestGetline.vcxproj" -- FAILED.
 1>Done Building Project "C:\projects\cpp\TestGetLine\TestGetline\TestGetline.vcxproj" (build target(s)) -- FAILED.
+6
10

" Windows XP (Service Pack 3)", . , !

+3

, pdb ( , ), .

+11

, Dropbox. , dropbox .pdb , .

.

+6

, - . , .

[Edit] . , . , VS2010 vc100.pdb . 1 , . 3 . , MS VS2012, , , , .

+2

proplem

filename.cpp: fatal error C1051: program database file, 'e:\a\b\c\d\filename.pdb

, filename.pdb, .

*.pdb, .

+1

, . .

+1

, . .

0

, Visual Studio 2005. , .idb .

0
0

" Windows XP (Service Pack 3)", . , !

0

All Articles