Home > Fatal Error > Fatal Error C1010 Unexpected End Of File

Fatal Error C1010 Unexpected End Of File

Contents

Top Back to original post Leave a Comment Please sign in to add a comment. Sunday, November 01, 2009 2:20 PM Reply | Quote 0 Sign in to vote Thanks .. Copy the code somewhere and recreate the project. asked 2 years ago viewed 35512 times active 12 months ago Linked 1 fatal error in vc++ while running c++ program 299 What's the use for “stdafx.h” in Visual Studio? his comment is here

Set property named "Create/Use Precompiled Header" to the value of "Not Using Precompiled Headers". All the buzzt! Is intelligence the "natural" product of evolution? Last edited on Sep 22, 2008 at 2:33pm UTC Sep 22, 2008 at 2:36pm UTC paushali (3) Oh! http://stackoverflow.com/questions/8862840/unexpected-end-of-file-error

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

This does not happen when I compile under Visual .Net IDE since I have precompiled headers feature disabled there. Monday, March 27, 2006 2:18 AM Reply | Quote 0 Sign in to vote Hi, I'm a beginer to VC++. It has not been tested and is not warranted. #include 'stdafx. /////////////////////////////////////////////////////////// //Gets the path to the executable. Click Precompiled Headers under Cofiguration Properties > C/C++ 3.

Please provide a valid email address if you select this option, or post under a registered account. Show city and country Show country only Hide my location You can Browse other questions tagged c++ visual-studio compiler-construction header or ask your own question. How is the Heartbleed exploit even possible? Unexpected End Of File While Looking For Precompiled Header Directive Vc6 On the right side of the window you'll get three properties.

Security Patch SUPEE-8788 - Possible Problems? Fatal Error C1010 Unexpected End Of File While Looking For Precompiled Header This can be found in Visual Studio under Build -> Configuration Manager. Recommended Version This documentation is archived and is not being maintained. Some actions that I already did: I Selected the option "Use(/Yu)" on Precompiled Header in PropertyPages-> C/C++ -> Precompiled Header I Set the Precompiled Header File to stdafx.h I put #include

Usually #include "stdafx.h" must be placed into your cpp file. Visual Studio Turn Off Precompiled Header more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Select none. Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 09-22-2008 #1 paushali View Profile View Forum Posts

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

Thanks once again. Get More Info Can a Legendary monster ignore a diviner's Portent and choose to pass the save anyway? Fatal Error C1010 Unexpected End Of File While Looking For Precompiled Header Directive But still the error is coming.    How to remove the options for using precompiled headers for this specific source file ? ?  Please help. Visual C++ 6.0 Fatal Error C1010 Sunday, March 26, 2006 3:59 PM Reply | Quote Moderator 1 Sign in to vote Produced from the idl file?

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. this content You defined your project to use precompiled header files. Did you forget to add '#include "stdafx.h"' to your source?" and failed to run.But Turbo C++ ran the program smoothly and showed the output. Did you forget to add '#include "stdafx.h"' to your source? c:\development\intel\pcsdk\sample\common\src\face_render.cpp So i tried that and it made matters worse with a lot more link errors. Fatal Error C1010 In Vc++

  • Why are unsigned numbers implemented?
  • In the right pane, click Create/Use Precompiled Header, and then click Not Using Precompiled Headers.
  • Below that, is a tree node, click Configuration Properties, then C/C++.
  • Sep 22, 2008 at 2:18pm UTC paushali (3) I disabled the precompiled header option and then tried to run the program.But I got the following errors: 1."stdafx.obj : error LNK2005: "public:
  • Join them; it only takes a minute: Sign up error C1010: unexpected end of file while looking for precompiled header.
  • up vote 12 down vote favorite 4 I compile the following code but I get a compile error in Visual Studio that I cannot understand. #include using namespace std; int

It worked Tuesday, April 22, 2014 9:47 AM Reply | Quote Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. need book id, written before 1996, it's about a teleport company that sends students learning to become colonists to another world Is it possible to have a planet unsuitable for agriculture? Did you forget to add '#include "stdafx.h"' to your source?" I don't believe I need a header file to run this code. weblink Find your .cxx file in the solution tree, right click on it and choose "Properties" from the popup menu.

Could any one tell me what's the reason behind and how to fix the problem? Unexpected End Of File While Looking For Precompiled Header Directive C++ Is "halfly" a word? If you didn't, then make sure #include "stdafx.h" is the first line in your .cpp file, otherwise you will see the same error even if you've included "stdafx.h" in your source

Physically locating the server Truth in numbers Is there any job that can't be automated?

So your c file or cpp files must include the file that is defined for precompilation at the top of it. can anyone please help me? D.K.Kundu\My Documents\Visual Studio 2008\Projects\constructor\Debug\constructor.exe : fatal error LNK1169: one or more multiply defined symbols found" 09-23-2008 #7 CornedBee View Profile View Forum Posts Visit Homepage Cat without Hat Join Date Apr Fatal Error C1004 Unexpected End-of-file Found Visual Studio Anyway, I created the source code, tried to compile, I then get the error error C1010: unexpected end of file while looking for precompiled header.

Cover an unusual board with minimum chess rooks Removing elements from an array that are in another array Any better way to determine source of light by analyzing the electromagnectic spectrum 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 All rights reserved. http://indywebshop.com/fatal-error/fatal-error-an-unexpected-condition-occurred-in-file-tengine-cpp.php 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

Content-type: text/html Send a message to Subject Comments: You are on page 1 of 4, other pages: [1] 2 3 42005-11-05, 08:37:23 anonymous from Canada #include using namespace std; Isn't that more expensive than an elevated system? share|improve this answer edited Oct 19 '15 at 16:30 answered Nov 21 '13 at 5:47 Glenn Teitelbaum 6,25911360 Not sure how to do that. CString GetPathToSelf() { HMODULE hmod = GetModuleHandle(NULL); char lpszFilename[512]; GetModuleFileName(hmod, lpszFilename, 512); CString path = lpszFilename; retupath; } ///////////////////////////////////////////////////////////// //Gets the path to the pdf995 folder.

How would you help a snapping turtle cross the road? Usually #include "stdafx.h" must be placed into your cpp file. Using VS2013, trying to create the app that is in the document titled "How to Use the Face Detection Module" Created a new project, typed in the code exactly as it 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

If you want to include the c file created form the idl. Choose precompiled Headers. i had the dll file in the same directory of vc++ project  folder. If what you've shown is the entire .cxx file, then you did forget to include stdafx.h in that file.

How to handle a senior developer diva who seems unaware that his skills are obsolete? I wrote the following code. Select the C++ options. When i created my console application, VS automatically puts a #include "stdafx." directive at the top of the main file.

Originally Posted by Salem You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much. asif is incorrect about it being required to be the first line in the source file, but it does need to be the first non-comment line in the source file. –George 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 First try deleting all files in the project except the one that contains main().

[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 Current rating: (22 votes). 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." - Is it appropriate to tell my coworker my mom passed away?