?
Solved

.PCH file missin fatal error 1083

Posted on 2002-05-06
5
Medium Priority
?
839 Views
Last Modified: 2013-11-20
i have used appwizard for MFC , here i have chosen DIALOG BASED appln. On compiling it results in a fatal error 1083 .PCH file missing. what is the reason for this error.IN one of my project directories the stdafx.obj file was missing.so i included it in the directory and complied the stdafx.h file after which the project that was reporting the .pch file was missing started working correctly..same steps upon following in another project still results ..it states the now the header file(stdafx.h) file requires a different tool to compile it.please guide...for the above 2 situation
0
Comment
Question by:kar11
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 12

Accepted Solution

by:
migel earned 100 total points
ID: 6993184
Hi!
check your projects Precompiled Header options in the C++ page
set it to the last option "Use precompiled header file *.pch"  and enter in the edit
stdafx.h
0
 
LVL 2

Assisted Solution

by:kozmo_jonny
kozmo_jonny earned 100 total points
ID: 6993275
in the CPP file of that same DIALOG

u need to include by that order :

1) stdafx.h
2) yourprojectname.h
3) yourdialogname.h

4) any other includes u might need for this dialog

enjoy

p.s.
did u try "Rebuild All" ??? this helps usually...

bye
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 6993987
2 kar11
Important that the first line in each Cpp is:
#include "StdAfx.h"

Use compiler setting C++/Precompiler Header/Use precompiled header file (.pch) through header stdafx.h for full project and C++/Precompiler Header/Create precompiled header file (.pch) through header stdafx.h ONLY for the file stdafx.cpp
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question