954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

fatal error C1189: #error : "include 'stdafx.h' before including this file

Hi

I have build one dll project .

I want to use that dll in another project.

But when I include the header file of the project I am getting an error

Error 2 fatal error C1189: #error : "include 'stdafx.h' before including this file for PCH"

Am I missing something

Kindly advice
Regards
Karan

karang
Light Poster
46 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

My assumption would be you need the line #include "stdafx.h" before you call up that program. I've never used a compiler that needed it so I really can't say anything else, that's just what I think you need.

DemonGal711
Junior Poster
190 posts since Apr 2008
Reputation Points: 18
Solved Threads: 10
 

Compiler menu..Click Project->(prj name)properties..And then click Configuration Properties->C/C++->Precompiled Header..
Create/Use PH..Change it..

cikara21
Posting Whiz
340 posts since Jul 2008
Reputation Points: 47
Solved Threads: 69
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You