CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    9

    I lost my pch files

    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.


  2. #2
    Join Date
    May 1999
    Posts
    48

    Re: I lost my pch files

    Check if the file which you want to compile includes the <stdafx.h>.
    Sincerely, Mihai


  3. #3
    Join Date
    Apr 1999
    Posts
    90

    Re: I lost my pch files

    I delete the debug and release directories all the time. Try rebuilding everything.


  4. #4

    Re: I lost my pch files

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured