[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

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.
0
wmlim060298
Asked:
wmlim060298
  • 2
1 Solution
 
thresher_sharkCommented:
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

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now