EDN Admin
Well-known member
<pre>I discovered an interesting note in relation to this error code.
Hopefully, my notes here will save someone the time it took me to figure this out:
Here is the output from my ReBuild operation (or Clean and then Build)
*** Clip
Compiling...
stdafx.cpp
.stdafx.cpp(5) : error C2859: c:wrkprojectwin32releasevc90.pdb is not the pdb file that was used when this precompiled header was created, recreate the precompiled header.
.stdafx.cpp(5) : error C2859: c:wrkprojectwin32releasevc90.idb is not the idb file that was used when this precompiled header was created, recreate the precompiled header.
*** Clip
I had changed the output of my program to a new name... Instead of project.exe, I changed it to ProductName.exe.
Because of this, the generated .pch file automatically became ProductName.pch instead of Project.pch. (I think this is $(TargetName), but I cant figure out where this gets set or pulled from)
After playing around with this for a while, I discovered that the Clean operation was not deleting the newly named .pch file.
After adding *.pch to the list of extensions to clean during a Clean operation, everything worked just fine.
Hope that saves someone some time.
If this is posted in the wrong place, can a moderator please repost it where it is appropriate.
Thanks,
DanS.
[/code]
View the full article
Hopefully, my notes here will save someone the time it took me to figure this out:
Here is the output from my ReBuild operation (or Clean and then Build)
*** Clip
Compiling...
stdafx.cpp
.stdafx.cpp(5) : error C2859: c:wrkprojectwin32releasevc90.pdb is not the pdb file that was used when this precompiled header was created, recreate the precompiled header.
.stdafx.cpp(5) : error C2859: c:wrkprojectwin32releasevc90.idb is not the idb file that was used when this precompiled header was created, recreate the precompiled header.
*** Clip
I had changed the output of my program to a new name... Instead of project.exe, I changed it to ProductName.exe.
Because of this, the generated .pch file automatically became ProductName.pch instead of Project.pch. (I think this is $(TargetName), but I cant figure out where this gets set or pulled from)
After playing around with this for a while, I discovered that the Clean operation was not deleting the newly named .pch file.
After adding *.pch to the list of extensions to clean during a Clean operation, everything worked just fine.
Hope that saves someone some time.

If this is posted in the wrong place, can a moderator please repost it where it is appropriate.
Thanks,
DanS.
[/code]
View the full article