Re: VC2005 Pro: IDE (Compiler ?) can't find Stdafx.h
- From: "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp>
- Date: Mon, 26 Dec 2005 23:45:44 -0500
David F wrote:
I understand well what you say and what Scott wrote but how does it correlate with the facts I wrote about and repeat here: 1. I did not setup up anything regarding the create \ use of precompiled header files. 2. I did find that by default, this option in the Project->Property Settings is set to "NOT use precompile header files". Isn't here that it tells compiler\linker to create\use the precompiled 3.The complain is that it does not find the stdafx.h SOURCE file 4. I do need the atdafx.h file
Your first post said you have #include "stdafx.h" in your code but you do not have a stdafx.h file in your project directory. In other words you told the compiler to include a file that does not exist. If all this is true then that's why it issues the "does not find" error message. I hope that makes sense? Also, I don't understand why you emphasize SOURCE file - What else would a compiler be looking for? You seem to be making some assumptions here that are incorrect, and its hard to guess how you are thinking it should work.
The easy solution: Start a new project. Make sure it is the kind of project you want for your program. This will give you the proper default build settings, and a proper stdafx.h file. Then copy and paste your code into the new project.
-- Scott McPhillips [VC++ MVP]
.
- Follow-Ups:
- Re: VC2005 Pro: IDE (Compiler ?) can't find Stdafx.h
- From: David F
- Re: VC2005 Pro: IDE (Compiler ?) can't find Stdafx.h
- References:
- VC2005 Pro: IDE (Compiler ?) can't find Stdafx.h
- From: David F
- Re: VC2005 Pro: IDE (Compiler ?) can't find Stdafx.h
- From: Mark Randall
- Re: VC2005 Pro: IDE (Compiler ?) can't find Stdafx.h
- From: David F
- Re: VC2005 Pro: IDE (Compiler ?) can't find Stdafx.h
- From: Mark Randall
- Re: VC2005 Pro: IDE (Compiler ?) can't find Stdafx.h
- From: David F
- VC2005 Pro: IDE (Compiler ?) can't find Stdafx.h
- Prev by Date: Re: How to get the time from January 1, 1970.
- Next by Date: compile error msg: Inconsistent layout information
- Previous by thread: Re: VC2005 Pro: IDE (Compiler ?) can't find Stdafx.h
- Next by thread: Re: VC2005 Pro: IDE (Compiler ?) can't find Stdafx.h
- Index(es):
Loading