Compiler Error C1004
Contents |
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs fatal error c1071: unexpected end of file found in comment Channel 9 Documentation APIs and reference Dev centers Retired content Samples c++ unexpected end of file while looking for precompiled header We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. C/C++
Unexpected End Of File Found Poweriso
Building Reference C/C++ Build Errors Compiler Fatal Errors C999 through C1999 Compiler Fatal Errors C999 through C1999 Fatal Error C1004 Fatal Error C1004 Fatal Error C1004 Fatal Error
Fatal Error Squad
C999 Fatal Error C1001 Fatal Error C1002 Fatal Error C1003 Fatal Error C1004 Fatal Error C1005 Fatal Error C1007 Fatal Error C1008 Fatal Error C1009 Fatal Error C1010 Fatal Error C1012 Fatal Error C1013 Fatal Error C1014 Fatal Error C1016 Fatal Error C1017 Fatal Error C1018 Fatal Error C1019 Fatal Error C1020 Fatal Error C1021 Fatal Error how to fix fatal error C1022 Fatal Error C1023 Fatal Error C1026 Fatal Error C1033 Fatal Error C1035 Fatal Error C1037 Fatal Error C1038 Fatal Error C1045 Fatal Error C1046 Fatal Error C1047 Fatal Error C1051 Fatal Error C1053 Fatal Error C1054 Fatal Error C1055 Fatal Error C1057 Fatal Error C1060 Fatal Error C1061 Fatal Error C1064 Fatal Error C1065 Fatal Error C1067 Fatal Error C1068 Fatal Error C1070 Fatal Error C1071 Fatal Error C1073 Fatal Error C1074 Fatal Error C1075 Fatal Error C1076 Fatal Error C1077 Fatal Error C1079 Fatal Error C1080 Fatal Error C1081 Fatal Error C1082 Fatal Error C1083 Fatal Error C1084 Fatal Error C1085 Fatal Error C1086 Fatal Error C1087 Fatal Error C1088 Fatal Error C1089 Fatal Error C1091 Fatal Error C1092 Fatal Error C1093 Fatal Error C1094 Fatal Error C1098 Fatal Error C1099 Fatal Error C1100 Fatal Error C1103 Fatal Error C1104 Fatal Error C1107 Fatal Error C1108 Fatal Error C1109 Fatal Error C1113 Fatal Error C1120 Fatal Error C1121 Fatal Error C1126 Fatal Error C1128 Fatal
Post your question and get tips & solutions from a community of 418,469 IT Pros & Developers. It's quick & easy. fatal error C1004: unexpected end-of-file found P: 4 MKO32 After compiling my C++ file I ended up with: fatal error C1004: unexpected end-of-file
Fatal Error During Installation
found So I went true the code from the top to the bottom about six times to see if I could find a forgotten { or ) and so on, but it looks alright to me. In the main() function I placed a couple of breakpoints where input is expected but the compiler ingores if there aren't any. Jan 18 '10 #1 Post Reply Share this Question 15 Replies 100+ P: 113 alexis4 http://msdn.microsoft.com/en-us/libr...8VS.71%29.aspx Jan 18 '10 #2 reply Expert Mod 5K+ P: 8,916 Banfa https://msdn.microsoft.com/en-us/library/4exw7xyc.aspx Breakpoints are only any use if you have got to the point of running the program in a debugger. If you have a compiler error you have no program so you would be able to run it in a debugger. You need to fix the compile error. We could probably help but you didn't post the code we have about as much chance of telling you what your error is without the code as you have of guess what colour mug I am drinking tea https://bytes.com/topic/c/answers/880055-fatal-error-c1004-unexpected-end-file-found from. Jan 18 '10 #3 reply Expert 100+ P: 2,295 donbock If you can't find anything wrong with the syntax of your source file then go to the last line of the source file and add a newline. A missing newline at the end of the file is pretty much invisible to you. Jan 18 '10 #4 reply P: 4 MKO32 Thank you for you reply. There is not much point going to Microsoft as they come up with answers whitch never got anything to do with the question you ask. Jan 18 '10 #5 reply P: 4 MKO32 Thank you for your quick reply. I've been trying to post the code but it is a very big file I can't get it back in an organized way in the small text box. I gave up maybe an idea for the moderator to change this small thing for something bigger. Anyway that is noy the isue. I deleted al the empty lines from the bottom and left one blank. I noticed that when I clicked on the error in the out-screen it jumped strait to the second line on the top, whitch is blank. Could it be that there is something wrong with one of the header files? Thanks for your help so far, Marcel Jan 18 '10 #6 reply Expert 100+ P: 2,295 donbock Actually, the MSDN link provided by alexis4 says that a missing newline at the end of the source file can trigger a c1004 error. Did you make t
List Welcome Guide More BleepingComputer.com → Software → Programming Javascript Disabled Detected You currently have javascript disabled. Several functions may not http://www.bleepingcomputer.com/forums/t/233653/c-unexpected-end-of-file-error/ work. Please re-enable javascript to access full functionality. Register a free account to unlock additional features at BleepingComputer.com Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view fatal error the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site. Click here to Register a free account unexpected end of now! or read our Welcome Guide to learn how to use this site. C++ Unexpected End of File error Started by gnometorule , Jun 13 2009 01:31 PM Please log in to reply 2 replies to this topic #1 gnometorule gnometorule Members 11 posts OFFLINE Local time:08:05 PM Posted 13 June 2009 - 01:31 PM Using Windows XPVisual C++ Express 2008 (free version)I get the following unexpected end of file message when entering code straight from the book "Exploring C++ / Ray Lischner" (email the author claims is his in the book doesn't exist, and there is no book web forum):------ Build started: Project: ch39_1, Configuration: Debug Win32 ------Compiling...generate_id.cppc:\documents and settings\ralf becker.ralf_work\my documents\visual studio 2008\projects\c++\ch36_42\ch39_1\ch39_1\generate_id.hpp(14) : fatal error C1004: unexpected end-of-file foundmain.cppc:\documents and settings\ralf becker.ralf_work\my documents\visual studio 2008\projects\c++\ch36_42\ch39_1\ch39_1\generate_id.hpp(14) : fatal error C1004: unexpected end-of-file foundGenerating Code...Build log was saved at "file://c:\Documents and Settings\Ralf Becker.RALF_WORK\My Documents\Visual Studio 2008\Projects\c++\ch36_42\ch39_1\ch39_1\Debug\BuildLog.htm"ch39_1 - 2 error(s), 0 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ===