   VC++ Error .pch file not found
  CApp.cpp(1) : fatal error C1083: Cannot open precompiled header file: 'Release/DX FW OOP.pch': No such file or directoryhow do i fix this?   
  Try forcing a full rebuild.   ;  What is your setting for precompiled headers?  If "Use Precompiled Header (/Yu)" is your setting and the precompiled header file has not yet been created, you get the error message you mentioned.  Try "Create Precompiled Header (/Yc)".  You also need to select a file to use, set this in the box next to "Create/Use PCH Through File".  Then each .c/.cpp file must include this file.A question for people.  After you successfully build using /Yc, do you then switch the option to /Yu?  If you do not, will the .pch file be recreated on each build?  If you make changes to header files while using /Yu, do you then have to change back to /Yc, rebuild, and then switch back to /Yu?;  You *might* have the input/output directories incorrect.  Verify that the precompiled header is being generated where you are trying to get it from.What I'd bet is the most likely problem is more just incorrect project settings.  See below.Quote:Original post by Anonymous PosterA question for people.  After you successfully build using /Yc, do you then switch the option to /Yu?  If you do not, will the .pch file be recreated on each build?  If you make changes to header files while using /Yu, do you then have to change back to /Yc, rebuild, and then switch back to /Yu?Don't change your project settings once you have them set.  The compiler will not recompile the precompiled header as long as it doesn't change (any files it includes that is).  That's the whole point of it.Set your project settings to "use precompiled header" and point to the file (probably stdafx.h).  Then, ONLY for stdafx.cpp, have it be set to "create precompiled header".  Now, every single cpp file needs to #include "stdafx.h" as the FIRST THING (any code before the include will be ignored).  There is no path used even if the stdafx.h file is located at a different level in your directory structure.   ;  Thanks, helix!  The part I had not understood was setting the "create" option for only one of the source files.   ;Quote:Original post by Anonymous PosterThanks, helix!  The part I had not understood was setting the "create" option for only one of the source files.That's apparently the most confusing part of the whole process I think.  Everyone I've helped get PCHs up and running at work always miss that part also.This is a great article on precompiled headers.  It's basically where I learned all I know about them.  :)http://www.cygnus-software.com/papers/precompiledheaders.html