TheSwamp

Code Red => ARX Programming => Topic started by: Kerry on November 18, 2007, 04:36:04 AM

Title: fatal error C1902:
Post by: Kerry on November 18, 2007, 04:36:04 AM

I'm getting this for every CPP build :
Quote
Error   2   fatal error C1902: Program database manager mismatch; please check your installation
   

According to the help ...

Quote
Visual C++ Concepts: Building a C/C++ Program 
Fatal Error C1902
Error Message
program database manager mismatch; please check your installation

A program database file (.pdb) was created using a newer version of mspdb80.dll than the one found while compiling.

This error usually indicates that mspdbsrv.exe or mspdbcore.dll are missing or have different versions from mspdb80.dll.
Ensure matching versions of mspdbsrv.exe, mspdbcore.dll, and mspdb80.dll are installed on your system.

and

Quote
Error Message
program database manager mismatch; please check your installation

A program database file (.pdb) was created using a newer version of DBI.dll than the one found while compiling. Install the latest version of DBI.dll on your system.

Microsoft Visual Studio 2005
Version 8.0.50727.762  (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727 SP1
Installed Edition: Standard


These are the results fo a system search ... it seems to me that the versions match

I cant find a DBI.dll on my system ... is one needed, where can I find it, and where should it go ? ? ?
Title: Re: fatal error C1902:
Post by: Kerry on November 18, 2007, 04:54:37 AM

And attached are the solution files if anyone wants to play.
It's possible I have some incorrect switch settings I 'spose
Title: Re: fatal error C1902:
Post by: It's Alive! on November 18, 2007, 09:49:37 AM
Works fine here Kerry. All I did was set the ARX inc/lib paths in the project and it compiled fine. Did you add these references?
Title: Re: fatal error C1902:
Post by: LE on November 18, 2007, 02:31:01 PM
I tried here and was compiled without any problems and doing any settings to the compiler...

Quote
1>------ Build started: Project: test_C1902, Configuration: Debug Win32 ------
1>Compiling...
1>StdAfx.cpp
1>Compiling...
1>acrxEntryPoint.cpp
1>DocData.cpp
1>test_C1902.cpp
1>Generating Code...
1>Compiling resources...
1>Compiling manifest to resources...
1>Linking...
1>   Creating library C:\Documents and Settings\HP_Administrator\Desktop\test_C1902\Win32\Debug/test_C1902.lib and object C:\Documents and Settings\HP_Administrator\Desktop\test_C1902\Win32\Debug/test_C1902.exp
1>rxapi.lib(libinit.obj) : warning LNK4099: PDB 'rxapi.pdb' was not found with 'C:\ObjectARX 2007\lib\rxapi.lib' or at 'C:\Documents and Settings\HP_Administrator\Desktop\test_C1902\Win32\Debug\rxapi.pdb'; linking object as if no debug info
1>acedapi.lib(acedstub.obj) : warning LNK4099: PDB 'corehdr.pdb' was not found with 'C:\ObjectARX 2007\lib\acedapi.lib' or at 'C:\Documents and Settings\HP_Administrator\Desktop\test_C1902\Win32\Debug\corehdr.pdb'; linking object as if no debug info
1>acedapi.lib(acedcls.obj) : warning LNK4099: PDB 'corehdr.pdb' was not found with 'C:\ObjectARX 2007\lib\acedapi.lib' or at 'C:\Documents and Settings\HP_Administrator\Desktop\test_C1902\Win32\Debug\corehdr.pdb'; linking object as if no debug info
1>Embedding manifest...
1>Build log was saved at "file://c:\Documents and Settings\HP_Administrator\Desktop\test_C1902\test_C1902\Win32\Debug\BuildLog.htm"
1>test_C1902 - 0 error(s), 3 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

I found this fix.... HTH


http://support.microsoft.com/kb/920770
Title: Re: fatal error C1902:
Post by: Kerry on November 18, 2007, 06:05:55 PM
Works fine here Kerry. All I did was set the ARX inc/lib paths in the project and it compiled fine. Did you add these references?

Do these show up for you Daniel ... or do I have them in the wrong place ?
Title: Re: fatal error C1902:
Post by: Kerry on November 18, 2007, 06:25:28 PM
I tried here and was compiled without any problems and doing any settings to the compiler...
................
I found this fix.... HTH


http://support.microsoft.com/kb/920770

I had seen that Luis, didn't seem relevant because my versions matched ...

//--------

Do you guys have a DBI.dll on your machines ?

Title: Re: fatal error C1902:
Post by: MickD on November 18, 2007, 07:17:41 PM
Worked ok here too Kerry, I don't have the DBI.dll either but I do have similar dll's as your search turned up.
Just a side note though I couldn't get it to build using your solution file (.sln) but when I opened just the project file it built no problems once I set my paths (the same as yours for both lib and include), I'd say it's because I haven't installed the SP yet as it's a 400+mb download.
Title: Re: fatal error C1902:
Post by: Kerry on November 18, 2007, 07:34:49 PM

Thanks Mick.

curiouser and curiouser ...
Title: Re: fatal error C1902:
Post by: LE on November 18, 2007, 08:45:25 PM
Do you guys have a DBI.dll on your machines ?

Not here...
Title: Re: fatal error C1902:
Post by: LE on November 18, 2007, 08:52:40 PM
That dbi.dll sound very strange....

Do not know if you have been in the below url link, Kerry :

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=72541&SiteID=1
Title: Re: fatal error C1902:
Post by: It's Alive! on November 18, 2007, 08:56:15 PM
By any chance did you install VS2008B2 then uninstall VS2008B2?
I usually do not add global paths to the ARX SDKs. I have mine setup as Owen suggests on his website.

Title: Re: fatal error C1902:
Post by: LE on November 18, 2007, 09:20:24 PM
Kerry,

I been using my VS2005 as shown on the image.... without any issues or problems for quite some time.
Title: Re: fatal error C1902:
Post by: It's Alive! on November 18, 2007, 09:42:28 PM
my ver
Title: Re: fatal error C1902:
Post by: Kerry on November 18, 2007, 09:48:29 PM
Kerry,

I been using my VS2005 as shown on the image.... without any issues or problems for quite some time.

Thanks Luis ... but I have SP1 installed , (so your .42 is my .762 I think)


That dbi.dll sound very strange....

Do not know if you have been in the below url link, Kerry :

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=72541&SiteID=1

Thanks Luis, I saw this last week but discarded it because I hadn't copied an dll's and didn't have any dll's anywhere other than where I believed they should be. ... also because the versions matched.

In desperation and endeavoring to leave no stone unturned, I just renamed the the
C:\Program Files\Microsoft Visual Studio 8\VC\bin\mspdb80.dll .
to
C:\Program Files\Microsoft Visual Studio 8\VC\bin\mspdb80-TEMP.dll .
leaving only the C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\mspdb80.dll ( I'm not sure if this is even accessed)

The solution built, and I'm gobsmacked because I don't believe it should have.

I've done a little Happy-Dance, but will save the real celebration untill I understand what is happening ..



Afterthought :
With my VS2008B2 (express), the reference for mspdb80.dll is ;
C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\mspdb80.dll

.. so, does this mean that the VS2005 does use, and should be using
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\mspdb80.dll

 :|



Title: Re: fatal error C1902:
Post by: Kerry on November 18, 2007, 09:52:11 PM
my Ver ..
Title: Re: fatal error C1902:
Post by: Kerry on November 18, 2007, 09:56:00 PM

..
I usually do not add global paths to the ARX SDKs. I have mine setup as Owen suggests on his website.


Thanks Daniel ... I was having a look at that this morning .. knowing that you'd been using the System Variables :-)


By any chance did you install VS2008B2 then uninstall VS2008B2?

I do have VS2008B2 installed (express)
C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\mspdb80.dll (File ver 9.0.20706.1)
Title: Re: fatal error C1902:
Post by: It's Alive! on November 18, 2007, 10:42:22 PM
Just taking shots, I had read uninstalling the beta may affect VS2005.