Click to See Complete Forum and Search --> : I lost my pch files


Idji
April 30th, 1999, 08:49 AM
I deleted the Debug directory in a VC++5 project and when I tried to recompile it said, "Unable to find precompiled headers".

What do I do?

Idji.

mihai
April 30th, 1999, 09:00 AM
Check if the file which you want to compile includes the <stdafx.h>.
Sincerely, Mihai

Michael Decker
April 30th, 1999, 09:17 AM
I delete the debug and release directories all the time. Try rebuilding everything.

LALeonard
April 30th, 1999, 12:51 PM
I do this all the time on purpose, too. In fact, I do it so often that I have a batch file that does it for me! Why do we do this on purpose? Sometimes it's the only thing that will make the compiler work correctly. For example, if you remove an implementation of a virtual function, I've noticed that errors seem to crop until, until you delete the PCH files and do a Rebuild All.

Also, note that when you delete the PCH files, you must do a Rebuild All the next time.

LA Leonard - http://www.DefinitiveSolutions.com