Home > Fatal Error > Fatal Error C1010 #include Stdafx.h

Fatal Error C1010 #include Stdafx.h

Changing "X.h" just a little bit may cause complete recompilation of the whole project. If you examine the *.cpp files in your project, you will notice that many of them include the same sets of headers, for example , , . Mindlessly including every single header into "stdafx.h" will slow down the compilation process instead of speeding it up. Outside of your DOS world, your header file is meaningless. http://bashprofile.net/fatal-error/fatal-error-c1010-stdafx-h.html

What are your build settings and/or what is your compile command? –abiessu Nov 21 '13 at 5:40 Well, this is on windows though it was originally meant to be For example, the line #include "stdafx.h" is not the first one in the file. c++ visual-studio visual-studio-2010 share|improve this question edited Aug 31 '11 at 19:56 Robᵩ 82.7k677144 asked Aug 31 '11 at 18:32 Howdy_McGee 2,6871469132 11 You need to turn off the use What are Imperial officers wearing here?

The *.pch file may be pretty large, which depends on how many headers are expanded in it. Did you forget to add '#include "StdAfx.h"' to your source? Please don't PM me for help - and no, I don't do help over instant messengers. 09-22-2008 #3 paushali View Profile View Forum Posts Visit Homepage Registered User Join Date Aug Possible solutions: Disable precompiled headers for all the C-files.

  1. On the dropdownlist beside configuration, select All Configurations.
  2. You can check if your solution is implemented in an incorrect way, by temporarily disabling precompiled headers.
  3. if (cmdln == 'deleteflag') { DeleteFile(GetPdf995Path() + 'pdf995\\flag'); return FALSE; } C:\Documents and Settings\Administrator\Desktop\prabhakar\pd\pdf995printing.cpp(5) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory what shold i

How? Did you forget to add '#include “StdAfx.h”' to your source?0Precompiled header error0VisualStudio 2010 - no more automatic precompiled headers?0error C1010: unexpected end of file while looking for precompiled header. Join them; it only takes a minute: Sign up fatal error C1010 - “stdafx.h” in Visual Studio how can this be corrected? Can Communism become a stable economic strategy?

We've written this article in order to help Visual Studio newcomers to figure it all out. On the right side of the window you'll get three properties. It will result in losing the line "int A = 10". Add a picture:

This will speed up the compilation process even more. The owner of this web site reserves the right to delete such material. The compiler points the error to be at the end of this .cxx file: #define BEECRYPT_CXX_DLL_EXPORT #ifdef HAVE_CONFIG_H # include "config.h" #endif #include "beecrypt/c++/security/SecureRandom.h" #include "beecrypt/c++/security/SecureRandomSpi.h" #include "beecrypt/c++/security/Security.h" using namespace beecrypt::security; To avoid such troubles, make sure you add #include "stdafx.h" at the very beginning of the file ALL THE TIME.

Is there a role with more responsibility? https://support.microsoft.com/en-us/kb/815644 The benefit of the preprocessor not having to read numbers of files, and insert them into each other, outweighs the losses on syntax analysis of additional code fragments. My code in VC++: Code: #include"stdafx.h" #include using namespace std; class integer { int m,n; public: integer(int,int); void disp(void) { cout<

Learning resources Microsoft Virtual Academy Channel 9 MSDN Magazine Community Forums Blogs Codeplex Support Self support Programs BizSpark (for startups) Microsoft Imagine (for students) United States (English) Newsletter Privacy & cookies http://bashprofile.net/fatal-error/fatal-error-c1010-unexpected-end-of-file.html The debugger reports something strange. Thank you for all your help in advance. asked 5 years ago viewed 46574 times active 2 years ago Visit Chat Linked 1 Why do i have to #include “stdafx.h” in Microsoft visual studio c++ applications? 0 C++ header

Remember one thing: a compiler is one of the least buggy tools. CornedBee "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code." - That's, of course, relative. navigate here Going to be away for 4 months, should we turn off the refrigerator or leave it on with water inside?

No new replies allowed. Suppose "stdafx.h" includes the file "X.h". Not the answer you're looking for?

The entire project keeps completely recompiling when using precompiled headers You have added into stdafx.h a file that you keep regularly editing.

c++ visual-studio compiler-construction header share|improve this question edited Nov 21 '13 at 6:18 Glenn Teitelbaum 6,25911360 asked Nov 21 '13 at 5:35 user1800967 168118 If the error message suggests Following the first solution matsp presented you, you must also delete the line including stdafx.h Originally Posted by brewbuck: Reimplementing a large system in another language to get a 25% performance So, I did some research on this and ran into this Microsoft article:http://msdn.microsoft.com/en-us/library/d7fz9ckx.aspx I tried both of those suggestions and again, a total mess of errors.   Any help will be [email protected] You are on page 1 of 4, other pages: [1] 2 3 4 NEW: Optional: Register Login Email address (not necessary): Rate as Off-topic Very Helpful Helpful Ok

share|improve this answer answered Apr 22 '14 at 2:26 Zahid19 3818 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign If anything is still unclear, ask our support service. However, compilation will terminate just a bit later because of errors. his comment is here Browse other questions tagged c++ visual-studio-2008 visual-c++ compiler-errors precompiled-headers or ask your own question.

If you speak Russian (i suppose it by your name )- maybe it would be more convenient to use Russian? –Andrey Chernukha Jan 14 '12 at 14:45 I don't Top Back to original post Leave a Comment Please sign in to add a comment. But I suggest that we quickly review novice programmers' typical mistakes once again, and investigate the reasons behind them. For example, below is the stdafx.h file we use in PVS-Studio (the text is abridged for the article): #include "VivaCore/VivaPortSupport.h" //For /Wall #pragma warning(push) #pragma warning(disable : 4820) #pragma warning(disable :

Fatal error C1853: 'project.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa) Is the NHS wrong about passwords? Find your project in the list and change the Platform column.