Home > Precompiled Header > Error C1010 Unexpected End Of File While

Error C1010 Unexpected End Of File While


Choose precompiled Headers. Topic archived. Quick Navigation C++ Programming Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums General Programming Boards C++ Programming C Programming C# Programming Game Programming Networking/Device Communication Select none. http://oncarecrm.com/precompiled-header/error-c1010-unexpected-end-of-file-while-looking.html

It worked!!! To set this compiler option, follow these steps: In the Solution Explorer pane of the project, right-click the project name, and then click Properties.In the left pane, click the C/C++ folder. You should be able to work around it by adding $(ProjectDir) to the Additional Include Directories option for the application and replacing the "..\StdAfx.h" with "StdAfx.h" as intellisense should now start This can be found in Visual Studio under Build -> Configuration Manager.

Fatal Error C1010: Unexpected End Of File While Looking For Precompiled Header Directive

Did you forget to add '#include "stdafx.h"' to your source?" I don't believe I need a header file to run this code. To clarify: All implementation should be done in source files (.cpp) and class definitions only should be in headers. My math students consider me a harsh grader. 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

contact us Register Remember Me? Did you forget to add '#include “stdafx.h”' to your source? What are the drawbacks of the US making tactical first use of nuclear weapons against terrorist sites? C++ Unexpected End Of File Found Looking for a term like "fundamentalism", but without a religious connotation Are backpack nets an effective deterrent when going to rougher parts of the world?

But I remember that there is some kind of setting to turn this precompiled headers feature for a separate project. –Alexandr Priymak Jan 14 '12 at 14:48 i don't Sir please help me. Last edited on Sep 22, 2008 at 2:33pm UTC Sep 22, 2008 at 2:36pm UTC paushali (3) Oh! Go Here In .cpp file the statement #include is the first statement.

View Profile View Forum Posts (?

Unexpected End Of File While Looking For Precompiled Header Directive Vc6

I'm using visual studio 6.0. This file also needs to be included before any other code in your source files using #include "stdafx.h". (This header file is specified as Create/Use PCH Through File project property) Show: Fatal Error C1010: Unexpected End Of File While Looking For Precompiled Header Directive If what you've shown is the entire .cxx file, then you did forget to include stdafx.h in that file. Fatal Error C1004 Unexpected End-of-file Found Visual Studio But still the error is coming.    How to remove the options for using precompiled headers for this specific source file ? ?  Please help.

Physically locating the server Superposition of images TreePlot does not give a "binary-looking" tree for a binary tree How do hackers find the IP address of devices? navigate here C/C++ Building Reference C/C++ Build Errors Compiler Fatal Errors C999 through C1999 Compiler Fatal Errors C999 through C1999 Fatal Error C1010 Fatal Error C1010 Fatal Error C1010 Fatal Error C999 Fatal Friday, March 24, 2006 9:34 AM Reply | Quote Moderator 0 Sign in to vote Yes, the .c file is created from the idl file. Wrong password - number of retries - what's a good number to allow? Turn Off Precompiled Headers Visual Studio 2015

If you want to include the c file created form the idl. 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 asked 4 years ago viewed 41674 times active 1 year ago Linked -4 Parse error: syntax error, unexpected end of file? -2 Why doesn't iostream work for me in visual studio Check This Out And either move the .h file or use the compiler's Additional Include Directories setting. –Hans Passant Feb 11 '15 at 17:05 add a comment| 1 Answer 1 active oldest votes up

Is there a place in academia for someone who compulsively solves every problem on their own? Visual Studio Turn Off Precompiled Headers more hot questions question feed lang-cpp about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Creating a game, from start to finish Recent additions How to create a shared library on Linux with GCC - December 30, 2011 Enum classes and nullptr in C++11 -

Find your .cxx file in the solution tree, right click on it and choose "Properties" from the popup menu.

Browse other questions tagged c++ visual-studio visual-studio-2013 header-files stdafx.h or ask your own question. Thanks     Error 15 error LNK1169: one or more multiply defined symbols found C:\Users\Rick\Documents\Visual Studio 2013\PerceptualComputing\SimpleCPPConsoleApp\Debug\SimpleCPPConsoleApp.exe Error 9 error LNK2005: "public: __thiscall std::_Container_base12::_Container_base12(void)" ([email protected]@@[email protected]) already defined in libpxcutils_d.lib(util_pipeline_raw.obj)  Error 10 error LNK2005: "public: __thiscall std::_Container_base12::~_Container_base12(void)" ([email protected]@@[email protected]) already when I included the stdafx.h it shows 3 erros where as 1 before. Fatal Error C1083: Cannot Open Precompiled Header File: share|improve this answer edited Feb 17 '14 at 15:46 answered Feb 17 '14 at 15:07 JordanBean 556623 add a comment| Your Answer draft saved draft discarded Sign up or log

Actually I did not forget to add #include "stdafx" to my source. Not the answer you're looking for? Are backpack nets an effective deterrent when going to rougher parts of the world? http://oncarecrm.com/precompiled-header/error-c1010-unexpected-end-of.html D.K.Kundu\My Documents\Visual Studio 2008\Projects\constructor\Debug\constructor.exe : fatal error LNK1169: one or more multiply defined symbols found" Sep 22, 2008 at 2:29pm UTC helios (13227) Sigh.....................

Powered by vBulletin Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. If user1800967 wants to use precompiled headers, he can add #include as the first non-comment line in his source files. On the right pane, select Create/Use Precompiled Header, and choose Not using Precompiled Header. How can I list two concurrent careers, one full time and one freelance, on a CV?

This is unpractical, just use plain "stdafx.h" so the compile options are good. I tried to use MS 2013 to run my project, and when I try to build the project, I have this error menssage: error C1010: unexpected end of file while looking Browse other questions tagged visual-studio stdafx.h or ask your own question. share|improve this answer answered Dec 17 '13 at 7:14 jnnnnn 1,7591120 add a comment| up vote 1 down vote The line #include "stdafx.h" must be the first line at the top

Thanks in advance.  #includeint_stdcall WinMain(                    HINSTANCE hInstancs,                    HINSTANCE hPrevInstance,                    LPSTR lpszCmdLine,                    int nCmdShow){    MessageBox(0,"Hello","Hello",0);    return(0);} It would be cheaper to just get a computer which is 25% faster. 09-23-2008 #6 paushali View Profile View Forum Posts Visit Homepage Registered User Join Date Aug 2007 Location INDIA If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.Would you like to participate? What are some examples of the new errors that showed up?

If you disable use of precompiled headers for either the project or for the file then you no longer have to include this header. students who have girlfriends/are married/don't come in weekends...? 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