Solved

.PCH file missin fatal error 1083

Posted on 2002-05-06
5
834 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
5 Comments
 
LVL 12

Accepted Solution

by:
migel earned 25 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 25 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

912 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now