0

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

3
Contributors
2
Replies
4
Views
8 Years
Discussion Span
Last Post by cikara21
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.

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.