See if that helps (man I hope I got this one right, it's been a while since I've fiddled with those :)) -- Tomas Restrepo email@example.com http://www.winterdom.com/ Nov 17 '05 #2 kneeride Bugbear Posts: 807 Kudos: 0 Joined: 14 May 2006Location: Melbourne, Australia Top Reply with quote by Devil N » Sun Sep 16, 2007 9:55 am In VC++, you can Tommy Vercetti, Mar 22, 2005 #1 Advertisements Tomas Restrepo \(MVP\) Guest Re: "not the pdb file that was used when this precompiled header was created" Hi Tommy, > I am working Hello and welcome to PC Review.
Changing them all toProgram Database for Edit and Continue (/ZI) and doing a full rebuild solved the problem. I've also tried manually compiling stdafx.cpp. solved 5 years ago by errorbase (170,010 points) Related errors 0 votes 3 solutions Fatal Error C1852: (filename) is not a valid precompiled header file requested 5 years ago by errorbase I have it setup so that stdafx.cpp will create a precompiled header stdafx.pch from stdafx.h.
See if that helps at first. However when I try and build in debug mode I get a whole heap of errors saying: Error 1 error C2859: [removed]\debug\vc100.idb is not the idb file that was used when You're right, this wasn't related to .NET or MC++.
Nov 17 '05 #1 Post Reply Share this Question 2 Replies P: n/a Tomas Restrepo \(MVP\) Hi Tommy, I am working on a Managed C++ project and I get the following More About Us... Borrow checker doesn't realize that `clear` drops reference to local variable Traveling via USA (B2 Visa) to Mexico - Ongoing ticket requirement Limits at infinity by rationalizing more hot questions question How do I rebuild the precompiled header?
Why would I get this error? I've also tried manually compiling stdafx.cpp. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.Would you like to participate? How can I have low-level 5e necromancer NPCs controlling many, many undead in this converted adventure?
Color scheme by ColorizeIt! 418,502 Members | 1,171 Online Join Now login Ask Question Home Questions Articles Browse Topics Latest Top Members FAQ home > topics > .net framework Thanks Last edited by kneeride on Mon Sep 17, 2007 4:56 am, edited 1 time in total. Visual Studio Languages , Windows Desktop Development > Visual C++ Question 0 Sign in to vote I am trying to upgrade an old solution to use VS2010 (VC100). I guess the upgrade screwed it up somehow.
Why am I getting this error? http://www.pcreview.co.uk/threads/not-the-pdb-file-that-was-used-when-this-precompiled-header-wascreated.1433898/ I believe that this .idb file is an intermediate debug file created by Visual Studio. Why would I get this error? Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Tomas Restrepo (MVP) wrote: >>TestThread.cpp(3) : error C2859: c:\projects\ProjectName\debug\vc70.pdb >>is not the pdb file that was used when this precompiled header was >>created, recreate the precompiled header. > This should not visual-c++ visual-studio-2010 debugging precompiled-headers share|improve this question edited Jul 9 '10 at 17:19 Joel Coehoorn 248k92440661 asked Jul 1 '10 at 6:42 Steiny 552519 add a comment| 5 Answers 5 active Managed C++ gets more and more frustrating every day. For more information on creating and using precompiled headers, see /Yc (Create Precompiled Header) and /YX (Automatic Use of Precompiled Headers).
kneeride Bugbear Posts: 807 Kudos: 0 Joined: 14 May 2006Location: Melbourne, Australia Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject These posts helped me get this far: Visual C++ Precompiled Headers errors Precompiled Headers Now all is fine when I build in release mode. This should not be caused, I think, by your use of MC++. I believe that this .idb file is an intermediate debug file created by Visual Studio.
Visual C++ Programmer's Guide Build Errors Compiler Errors C2800 Through C2899 Compiler Errors C2800 Through C2899 Compiler Error C2859 Compiler Error C2859 Compiler Error C2859 Compiler Error C2800 Compiler Error C2801 TreePlot does not give a "binary-looking" tree for a binary tree Standard way for novice to prevent small round plug from rolling away while soldering wires to it Should I serve In other words why did it not use this .idb file when it created the precompiled header?
These posts helped me get this far: Visual C++ Precompiled Headers errors Precompiled Headers Now all is fine when I build in release mode. Dev centers Windows Office Visual Studio Microsoft Azure More... Changing them all to Program Database for Edit and Continue (/ZI) and doing a full rebuild solved the problem. Clean Solution, Rebuild Solution, don't help.
Linker > Output File isn't set to the default of $(OutDir)\$(ProjectName).exe but to something else, e.g. $(OutDir)\$(ProjectName)-custom_postfix.exe) In this case, and apparently only when doing a Rebuild-Project-Only, the vc80.pdb seems to See if that helps Nov 17 '05 #3 This discussion thread is closed Start new discussion Replies have been disabled for this discussion. First, try if you like to disable > precompiled headers (it's in the compiler options in the project settings). > See if that helps at first. solved 5 years ago by errorbase (170,010 points) 0 votes Rebuild the project to recreate the precompiled header.
share|improve this answer answered Jun 4 '14 at 16:54 Joe 5112 add a comment| up vote 0 down vote I've hit this error with VS2005 when compiling a project where the Because the compiler shares information between a project's .PDB file and its precompiled header files, you need to make sure both the .PDB and precompiled header files were created together. The problem was that stdafx.cpp had Debug Information Format set to Program Database (/Zi) where as all the other files had it set to Program Database for Edit and Continue (/ZI). Post a reply 4 posts • Page 1 of 1 Reply with quote [solved] precompiled header issues by kneeride » Sun Sep 16, 2007 5:55 am I'm having config issues with
Show: Inherited Protected Print Export (0) Print Export (0) Share IN THIS ARTICLE Is this page helpful? This should not be caused, I think, by your use of MC++. Then all the other .cpp files that include stdafx.h are instructed to use the precompiled header. Managed C++ gets more and more frustrating every day.
If I manually delete the vc70.pdb, it doesn't seem to recompile. I've checked the settings in both projects they they are seem to be the same.