Home VC++ fatal error C1010: unexpected end of file while looking for precompiled header directive
VC++

fatal error C1010: unexpected end of file while looking for precompiled header directive

fatal error C1010: unexpected end of file while looking for precompiled header directive
에러는 “stdafx.h” 헤더 파일이 없어서 나오는 에러이다.
특정한 프로젝트에 복사해서 붙여 넣기 하기를 실행 할 경우 에러가 발생한다.
DLL 프로젝트를 만들면서 다른 프로젝트의 소스를 그대로 가져오는 경우, 컴파일 속성이 다르므로 간혹 이런 에러를 만나게 되는데 당황하지 말자.
해결방법은
#include “stdafx.h”를 추가 하거나
VC++의 Project -> Settings(Alt + F7) -> C/C++ 탭 -> Category: Precompiled Headers 에서
Not using precompiled headers를 지정한다
이는 Visual C++ 컴파일러는 미리 컴파일된 해더(Precompiled Head를 지원하고, 프로젝트 설정을 통해 대상 헤더를 지정할 수 있기 때문이다.
특히 MFC는 수정하지 않고 사용하는 헤더 수가 많기 때문에, 이 방식을 사용하면 매번 전체를 컴파일하지 않아 개발 속도가 빨라진다.
위와 같이 하게 되면 해당.cpp는 Precomplie 하지 않게 된다.
또다른 방법으로 general 탭 에서 exclude file from build 를 체크해주면 빌드시에 아예 제외하게 된다.

Author

admin

Join the Conversation

  1. I just want to say I am beginner to blogging and honestly enjoyed you’re page. Almost certainly I’m going to bookmark your site . You certainly have exceptional articles. Thanks for sharing your web site.

  2. I’d should talk to you here. Which is not some thing I do! I quite like reading a post which will make people believe. Also, many thanks permitting me to comment!

  3. I love your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do it for you? Plz answer back as I’m looking to design my own blog and would like to know where u got this from. appreciate it

  4. Wonderful article. I learn something much more tough on various blogs everyday. It will always be promoting to review content from other writers as well as practice a something from their store. I?d like to use some with the content on my blog whether you don?t mind. Natually I?ll offer you a web link on your web blog. Many thanks for sharing.

  5. Nicely… to be absolutely genuine, My partner and i had not been hoping to stumble upon this kind of data accidentally, as I did, because I recently came across your blog article whilst I used to be the truth is running looking throughout AOL, looking for some thing very close up however, not a similar… On the other hand at this time I will be over happy for being here and also I want to bring that the insight is extremely intriguing even though a little bit controversial to the recognized… I’d personally say it’s as much as discussion… but I’m frightened to cause you to an opponent, ha, ha, ha… However, for those who like to dicuss at length over it, you need to response to my remark and also I will always sign up so that I’ll be informed and are available back again for much more… Your current hopeful friend

  6. The next time I review a blog, I hope that it doesn’t dissatisfy me as long as this. I mean, I know it was my choice to read, but I in fact assumed youd have something interesting to state. All I listen to is a lot of whining concerning something that you can take care of if you werent too hectic seeking interest.

  7. There are some intriguing moments in this short article however I don?t know if I see every one of them center to heart. There is some legitimacy but I will certainly hold viewpoint up until I check into it better. Excellent write-up, many thanks and also we desire much more! Added to FeedBurner too

  8. I’m amazed, I have to admit. Rarely do I encounter a blog that’s both educative and interesting, and let me tell you, you have hit the nail on the head. The problem is something that too few folks are speaking intelligently about. I am very happy I came across this during my search for something relating to this.

  9. Right here is the right site for anyone who hopes to understand this topic. You know a whole lot its almost tough to argue with you (not that I personally will need to…HaHa). You definitely put a new spin on a subject that has been written about for a long time. Great stuff, just excellent!

  10. When I originally left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and now whenever a comment is added I receive four emails with the exact same comment. There has to be a way you can remove me from that service? Kudos!

  11. A motivating discussion is worth comment. I think that you need to publish more on this subject matter, it may not be a taboo matter but usually people do not talk about these subjects. To the next! Best wishes!!

  12. Howdy! This blog post could not be written much better! Looking through this article reminds me of my previous roommate! He constantly kept preaching about this. I’ll forward this article to him. Pretty sure he’s going to have a great read. I appreciate you for sharing!

  13. You are so interesting! I don’t believe I’ve truly read anything like that before. So wonderful to find someone with original thoughts on this issue. Seriously.. thank you for starting this up. This web site is something that is needed on the internet, someone with some originality!

  14. I’m amazed, I have to admit. Seldom do I encounter a blog that’s both educative and amusing, and without a doubt, you have hit the nail on the head. The problem is something which not enough folks are speaking intelligently about. Now i’m very happy I came across this during my search for something regarding this.

  15. Oh my goodness! Amazing article dude! Thank you so much, However I am having issues with your RSS. I don’t know why I am unable to subscribe to it. Is there anyone else having identical RSS problems? Anyone that knows the solution can you kindly respond? Thanks!!

  16. After looking into a handful of the blog posts on your blog, I really like your way of blogging. I book marked it to my bookmark site list and will be checking back soon. Please check out my website too and let me know your opinion.

  17. Hi, I do think this is a great blog. I stumbledupon it 😉 I’m going to revisit once again since i have book marked it. Money and freedom is the greatest way to change, may you be rich and continue to help other people.

  18. Hello there! This post couldn’t be written any better! Reading through this article reminds me of my previous roommate! He always kept talking about this. I will send this information to him. Fairly certain he’s going to have a great read. Many thanks for sharing!

  19. After I originally commented I seem to have clicked on the -Notify me when new comments are added- checkbox and now whenever a comment is added I receive 4 emails with the exact same comment. There has to be a means you are able to remove me from that service? Thank you!

  20. Oh my goodness! Impressive article dude! Thanks, However I am going through issues with your RSS. I don’t understand the reason why I cannot subscribe to it. Is there anybody having similar RSS problems? Anyone who knows the answer will you kindly respond? Thanx!!

  21. The next time I read a blog, I hope that it doesn’t fail me just as much as this one. I mean, Yes, it was my choice to read through, however I truly thought you’d have something interesting to talk about. All I hear is a bunch of moaning about something that you could possibly fix if you were not too busy searching for attention.

  22. I blog quite often and I genuinely appreciate your content. The article has truly peaked my interest. I’m going to bookmark your website and keep checking for new details about once a week. I opted in for your Feed as well.

  23. After exploring a handful of the blog posts on your web site, I truly appreciate your way of writing a blog. I saved as a favorite it to my bookmark website list and will be checking back in the near future. Please check out my website too and tell me what you think.

  24. I absolutely love your blog.. Pleasant colors & theme. Did you create this website yourself? Please reply back as I’m hoping to create my very own blog and would like to know where you got this from or exactly what the theme is called. Many thanks!

  25. A motivating discussion is definitely worth comment. There’s no doubt that that you should publish more on this subject matter, it might not be a taboo matter but generally folks don’t discuss such issues. To the next! Cheers!!

  26. Can I simply say what a relief to uncover someone that genuinely understands what they’re talking about on the internet. You certainly know how to bring a problem to light and make it important. More and more people need to look at this and understand this side of your story. I was surprised that you are not more popular since you definitely possess the gift.

  27. You’re so interesting! I do not suppose I’ve read anything like that before. So great to discover someone with some original thoughts on this subject. Seriously.. many thanks for starting this up. This website is one thing that’s needed on the web, someone with a bit of originality!

  28. Next time I read a blog, I hope that it won’t disappoint me just as much as this one. After all, I know it was my choice to read, but I really believed you would probably have something interesting to say. All I hear is a bunch of whining about something you could fix if you were not too busy looking for attention.

  29. Your style is really unique compared to other people I’ve read stuff from. Many thanks for posting when you’ve got the opportunity, Guess I will just book mark this page.

  30. I was excited to discover this page. I need to to thank you for your time due to this fantastic read!! I definitely appreciated every part of it and I have you book marked to look at new things on your website.

  31. After looking over a number of the blog articles on your website, I really like your technique of blogging. I saved it to my bookmark site list and will be checking back in the near future. Take a look at my web site too and let me know what you think.

  32. Aw, this was an exceptionally good post. Finding the time and actual effort to make a great article… but what can I say… I put things off a whole lot and never manage to get anything done.

  33. Hi there! This blog post could not be written much better! Looking at this post reminds me of my previous roommate! He constantly kept talking about this. I am going to send this post to him. Pretty sure he’s going to have a very good read. Thank you for sharing!

  34. Your style is so unique in comparison to other folks I have read stuff from. I appreciate you for posting when you’ve got the opportunity, Guess I’ll just bookmark this blog.

  35. I’m amazed, I must say. Rarely do I come across a blog that’s equally educative and engaging, and let me tell you, you’ve hit the nail on the head. The problem is something which not enough folks are speaking intelligently about. I’m very happy that I stumbled across this during my hunt for something regarding this.

  36. You’ve made some good points there. I looked on the net for more information about the issue and found most individuals will go along with your views on this site.

  37. I blog quite often and I seriously appreciate your information. This article has really peaked my interest. I will book mark your site and keep checking for new information about once per week. I opted in for your Feed as well.

  38. Having read this I believed it was very enlightening. I appreciate you finding the time and energy to put this article together. I once again find myself personally spending a significant amount of time both reading and commenting. But so what, it was still worthwhile!

  39. After I initially left a comment I seem to have clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I receive four emails with the same comment. Perhaps there is a way you can remove me from that service? Thanks!

  40. Hi, I do think this is a great web site. I stumbledupon it 😉 I am going to revisit once again since I book marked it. Money and freedom is the greatest way to change, may you be rich and continue to guide other people.

  41. Good post. I learn something new and challenging on blogs I stumbleupon everyday. It will always be exciting to read content from other writers and practice a little something from their websites.

  42. I blog frequently and I genuinely thank you for your information. This article has truly peaked my interest. I will take a note of your blog and keep checking for new information about once per week. I subscribed to your RSS feed too.

  43. Having read this I thought it was rather informative. I appreciate you taking the time and effort to put this informative article together. I once again find myself spending a significant amount of time both reading and commenting. But so what, it was still worth it!

  44. After I originally commented I appear to have clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I recieve four emails with the same comment. Is there a means you can remove me from that service? Thank you!

  45. I have to thank you for the efforts you have put in penning this site. I am hoping to check out the same high-grade blog posts from you later on as well. In fact, your creative writing abilities has motivated me to get my own website now 😉

  46. I’d like to thank you for the efforts you have put in writing this site. I’m hoping to check out the same high-grade content from you in the future as well. In truth, your creative writing abilities has motivated me to get my own website now 😉

  47. I absolutely love your site.. Pleasant colors & theme. Did you create this website yourself? Please reply back as I’m trying to create my very own website and would like to learn where you got this from or exactly what the theme is named. Kudos!

  48. Oh my goodness! Incredible article dude! Thank you so much, However I am encountering issues with your RSS. I don’t know the reason why I cannot subscribe to it. Is there anybody having similar RSS problems? Anyone who knows the solution can you kindly respond? Thanx!!

  49. After exploring a number of the blog posts on your blog, I really appreciate your way of writing a blog. I book-marked it to my bookmark webpage list and will be checking back in the near future. Please check out my website too and let me know what you think.

  50. I really love your blog.. Pleasant colors & theme. Did you develop this website yourself? Please reply back as I’m hoping to create my own personal website and would like to learn where you got this from or just what the theme is named. Kudos!

  51. Oh my goodness! Amazing article dude! Many thanks, However I am going through difficulties with your RSS. I don’t know why I cannot join it. Is there anybody getting identical RSS problems? Anyone who knows the answer will you kindly respond? Thanx!!

  52. Howdy, I believe your blog could be having browser compatibility issues. When I take a look at your blog in Safari, it looks fine however when opening in IE, it has some overlapping issues. I just wanted to provide you with a quick heads up! Aside from that, wonderful website!

  53. Aw, this was a really great message. In concept I would love to put in composing such as this additionally? taking time and also actual initiative to make an excellent write-up? but what can I state? I put things off alot and also by no means seem to obtain something done.

  54. The next time I read a blog, I hope that it won’t fail me as much as this particular one. I mean, Yes, it was my choice to read through, nonetheless I actually believed you would have something helpful to say. All I hear is a bunch of whining about something that you could possibly fix if you weren’t too busy seeking attention.

  55. Howdy! I could have sworn I’ve visited this web site before but after browsing through some of the posts I realized it’s new to me. Anyways, I’m certainly pleased I discovered it and I’ll be bookmarking it and checking back frequently!

  56. Hi there! This blog post could not be written any better! Reading through this article reminds me of my previous roommate! He continually kept talking about this. I most certainly will forward this post to him. Fairly certain he will have a good read. Thanks for sharing!

  57. Howdy! I just would like to offer you a huge thumbs up for the great information you’ve got right here on this post. I am returning to your site for more soon.

  58. I’m amazed, I have to admit. Rarely do I come across a blog that’s equally educative and amusing, and without a doubt, you have hit the nail on the head. The problem is something not enough men and women are speaking intelligently about. Now i’m very happy that I found this in my search for something concerning this.

  59. Can I just say what a relief to uncover an individual who truly understands what they’re talking about over the internet. You actually realize how to bring a problem to light and make it important. A lot more people ought to read this and understand this side of the story. It’s surprising you’re not more popular since you certainly have the gift.

  60. An outstanding share! I have just forwarded this onto a colleague who had been doing a little research on this. And he in fact ordered me lunch simply because I discovered it for him… lol. So allow me to reword this…. Thanks for the meal!! But yeah, thanks for spending time to discuss this issue here on your internet site.

  61. I have to thank you for the efforts you have put in writing this website. I am hoping to view the same high-grade blog posts by you in the future as well. In fact, your creative writing abilities has motivated me to get my own blog now 😉

  62. You’re so cool! I do not think I’ve truly read through a single thing like that before. So good to discover someone with a few original thoughts on this subject matter. Seriously.. many thanks for starting this up. This site is something that is required on the internet, someone with a little originality!

  63. Right here is the perfect website for anybody who wants to find out about this topic. You understand so much its almost tough to argue with you (not that I actually would want to…HaHa). You definitely put a new spin on a subject that has been discussed for many years. Great stuff, just excellent!

  64. Oh my goodness! a remarkable post dude. Thank you Nonetheless I am experiencing issue with ur rss. Don?t understand why Unable to sign up for it. Is there any individual obtaining the same rss trouble? Anyone who recognizes kindly respond. Thnkx

  65. When I initially left a comment I seem to have clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I receive 4 emails with the same comment. Is there an easy method you are able to remove me from that service? Thank you!

  66. I’m impressed, I must say. Rarely do I encounter a blog that’s equally educative and amusing, and let me tell you, you’ve hit the nail on the head. The issue is something which too few people are speaking intelligently about. I’m very happy I stumbled across this in my hunt for something relating to this.

  67. I really love your blog.. Excellent colors & theme. Did you create this amazing site yourself? Please reply back as I’m wanting to create my very own site and would like to learn where you got this from or just what the theme is named. Thank you!

  68. Having read this I believed it was extremely informative. I appreciate you spending some time and energy to put this content together. I once again find myself spending way too much time both reading and commenting. But so what, it was still worth it!

  69. I blog frequently and I seriously thank you for your content. The article has truly peaked my interest. I will take a note of your site and keep checking for new information about once a week. I subscribed to your Feed too.

  70. I blog often and I really appreciate your information. Your article has really peaked my interest. I’m going to bookmark your site and keep checking for new details about once a week. I opted in for your RSS feed too.

  71. I’m amazed, I have to admit. Seldom do I encounter a blog that’s equally educative and engaging, and let me tell you, you’ve hit the nail on the head. The problem is something which too few people are speaking intelligently about. I am very happy I stumbled across this during my hunt for something concerning this.

  72. Greetings, I believe your website may be having browser compatibility problems. When I look at your site in Safari, it looks fine however, if opening in Internet Explorer, it’s got some overlapping issues. I simply wanted to give you a quick heads up! Besides that, excellent blog!

  73. May I simply just say what a comfort to find an individual who truly understands what they are discussing online. You definitely know how to bring an issue to light and make it important. A lot more people must check this out and understand this side of your story. It’s surprising you’re not more popular because you certainly have the gift.

  74. An impressive share! I’ve just forwarded this onto a co-worker who has been doing a little homework on this. And he in fact ordered me dinner due to the fact that I stumbled upon it for him… lol. So let me reword this…. Thanks for the meal!! But yeah, thanks for spending time to talk about this issue here on your blog.

  75. After exploring a few of the blog articles on your blog, I seriously like your way of blogging. I saved it to my bookmark site list and will be checking back in the near future. Take a look at my website too and tell me what you think.

  76. Wonderful message. I discover something extra tough on different blog sites everyday. It will constantly be boosting to check out material from various other authors and exercise a something from their shop. I?d choose to utilize some with the web content on my blog site whether you don?t mind. Natually I?ll give you a web link on your web blog site. Thanks for sharing.

  77. I seriously love your blog.. Excellent colors & theme. Did you develop this web site yourself? Please reply back as I’m planning to create my very own blog and would like to learn where you got this from or just what the theme is named. Appreciate it!

  78. Oh my goodness! Impressive article dude! Thank you so much, However I am having troubles with your RSS. I don’t understand the reason why I cannot subscribe to it. Is there anybody having the same RSS issues? Anyone that knows the answer can you kindly respond? Thanx!!

  79. Next time I read a blog, Hopefully it does not disappoint me just as much as this particular one. After all, I know it was my choice to read, but I truly believed you would have something useful to talk about. All I hear is a bunch of crying about something that you could possibly fix if you weren’t too busy seeking attention.

  80. Oh my goodness! Amazing article dude! Thank you, However I am having problems with your RSS. I don’t know why I cannot subscribe to it. Is there anyone else having similar RSS problems? Anyone that knows the solution can you kindly respond? Thanks!!

  81. Hi there, I think your web site could be having internet browser compatibility issues. When I look at your site in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping issues. I just wanted to give you a quick heads up! Apart from that, fantastic site!

  82. After looking at a number of the blog articles on your site, I truly like your way of blogging. I saved as a favorite it to my bookmark webpage list and will be checking back in the near future. Please visit my web site as well and let me know what you think.

  83. Having read this I believed it was really enlightening. I appreciate you spending some time and energy to put this article together. I once again find myself spending a significant amount of time both reading and posting comments. But so what, it was still worthwhile!

  84. I blog often and I seriously thank you for your content. Your article has truly peaked my interest. I will book mark your blog and keep checking for new information about once a week. I subscribed to your Feed too.

  85. Can I just say what a relief to uncover a person that actually knows what they’re discussing over the internet. You actually understand how to bring an issue to light and make it important. More people have to check this out and understand this side of your story. I can’t believe you are not more popular because you definitely possess the gift.

  86. Hi there! I simply want to give you a big thumbs up for your great info you have got right here on this post. I’ll be coming back to your website for more soon.

  87. I truly love your site.. Pleasant colors & theme. Did you make this site yourself? Please reply back as I’m wanting to create my own website and want to find out where you got this from or exactly what the theme is named. Thanks!

  88. Having read this I believed it was very enlightening. I appreciate you spending some time and energy to put this content together. I once again find myself spending a lot of time both reading and commenting. But so what, it was still worthwhile!

  89. Hi there! I could have sworn I’ve visited this web site before but after looking at some of the posts I realized it’s new to me. Anyways, I’m definitely happy I came across it and I’ll be bookmarking it and checking back regularly!

  90. Right here is the right web site for everyone who wishes to understand this topic. You know so much its almost hard to argue with you (not that I actually would want to…HaHa). You definitely put a fresh spin on a topic which has been discussed for ages. Great stuff, just great!

  91. I seriously love your site.. Very nice colors & theme. Did you make this web site yourself? Please reply back as I’m wanting to create my own blog and want to find out where you got this from or what the theme is named. Cheers!

  92. After exploring a handful of the articles on your site, I really appreciate your way of writing a blog. I book marked it to my bookmark site list and will be checking back soon. Take a look at my web site as well and let me know how you feel.

  93. Greetings, There’s no doubt that your website might be having browser compatibility problems. Whenever I take a look at your site in Safari, it looks fine however, if opening in I.E., it has some overlapping issues. I just wanted to give you a quick heads up! Other than that, excellent site!

  94. When I originally commented I clicked the -Notify me when new remarks are added- checkbox as well as now each time a comment is added I obtain four e-mails with the same comment. Is there any way you can eliminate me from that solution? Thanks!

  95. I must thank you for the efforts you have put in penning this website. I’m hoping to view the same high-grade content by you in the future as well. In fact, your creative writing abilities has motivated me to get my very own site now 😉

  96. Good post. I learn something much more difficult on various blog sites everyday. It will always be stimulating to read web content from other authors and exercise a little something from their shop. I?d like to make use of some with the material on my blog whether you don?t mind. Natually I?ll give you a link on your web blog site. Many thanks for sharing.

댓글 남기기

이메일은 공개되지 않습니다.