Unable to compile a cpp file

Hi,
I kept on receiving this error message when I try to compile my CPP file "fatal error C1010: unexpected end of file while looking for precompiled header directive". This still happens when I try to clean the directory and recompile all files. I am thus unable to build an executable.
wmlim060298Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
thresher_sharkConnect With a Mentor Commented:
Add:

#include "stdafx.h"

to the top of the source file having this difficulty.

If you have any further questions regarding this issue, please feel free to ask.  Thanks!
0
 
wmlim060298Author Commented:
Thanks ! I actually tried to include this header just before your answer came.
0
 
thresher_sharkCommented:
Glad it all worked out!

Just out of curiousity, why'd you give me a 'B' then?  I just want to try to improve my answers for in the future.  Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.