Fatal Error C1010 Unexpected End Of File
Contents |
here for a quick overview of the site Help Center Detailed answers
Fatal Error C1010 Unexpected End Of File While Looking For Precompiled Header Directive
to any questions you might have Meta Discuss the workings fatal error c1010 unexpected end of file while looking for precompiled header and policies of this site About Us Learn more about Stack Overflow the company Business Learn
Visual C++ 6.0 Fatal Error C1010
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow fatal error c1010 in vc++ Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unexpected end of file error up vote 19 down vote favorite 2 I hope you can help me, cause I have no idea about what's unexpected end of file while looking for precompiled header directive vc6 going on. I'm having the following error while trying to add Beecrypt library to my project: fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? Actually I did not forget to add #include "stdafx" to my source. 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; SecureRandom* SecureRandom::getInstance(const String& algorithm) throw (NoSuchAlgorithmException) { Security::spi* tmp = Security::getSpi(algorithm, "SecureRandom"); assert(dynamic_cast
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 Channel 9 Documentation APIs and reference Dev centers Retired content
Visual Studio Turn Off Precompiled Header
Samples We’re sorry. The content you requested has been removed. You’ll be auto unexpected end of file while looking for precompiled header directive c++ redirected in 1 second. C/C++ Building Reference C/C++ Build Errors Compiler Fatal Errors C999 through C1999 Compiler Fatal Errors C999
Fatal Error C1004 Unexpected End-of-file Found Visual Studio
through C1999 Fatal Error C1010 Fatal Error C1010 Fatal Error C1010 Fatal Error C999 Fatal Error C1001 Fatal Error C1002 Fatal Error C1003 Fatal Error C1004 Fatal Error C1005 Fatal Error C1007 Fatal http://stackoverflow.com/questions/8862840/unexpected-end-of-file-error 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 C1022 Fatal Error C1023 Fatal Error C1026 Fatal Error C1033 Fatal Error C1034 Fatal Error C1035 Fatal Error C1037 Fatal Error C1038 Fatal Error C1045 Fatal Error C1046 Fatal Error https://msdn.microsoft.com/en-us/library/d7fz9ckx(v=vs.90).aspx C1047 Fatal Error C1051 Fatal Error C1053 Fatal Error C1054 Fatal Error C1055 Fatal Error C1057 Fatal Error C1059 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 Error C1189 Fatal Error C1190 Fatal Error C1191 Fatal Error C1192 Fatal Error C1196 Fatal Error C1197 Fatal Error C1201 Fatal Error C1202 Fatal Error C1205 Fatal Error C1206 Fatal Error C1207 Fatal Error C1208 Fatal Error C1209 Fatal Error C1210 Fatal Error C1211 Fatal Error C1305 Fatal Error C1307 Fatal Error C1308 Fatal
precompiled header directive Visual Studio Languages , Windows Desktop Development > Visual C++ Question 0 Sign in to vote i included an vb dll into vc++. When i compiled i am getting this error. https://social.msdn.microsoft.com/Forums/vstudio/en-US/3a512fa7-aad2-4bcc-acbc-e2fcd96c7605/fatal-error-c1010-unexpected-end-of-file-while-looking-for-precompiled-header-directive?forum=vcgeneral fatal error C1010: unexpected end of file while looking for precompiled header directive in the .c file produced from the idl file. i included comdef.h and header file produced by midl compiler to the source file. i http://cboard.cprogramming.com/cplusplus-programming/107318-error-c1010-unexpected-end-file-while-looking-precompiled-header.html had the dll file in the same directory of vc++ project folder. Any thing need to be set here ? Friday, March 24, 2006 6:52 AM Reply | Quote Answers 2 Sign in to vote Select fatal error the file in the solutin explorer. Click on properties. Select the C++ options. Choose precompiled Headers. Select none. Sunday, March 26, 2006 3:59 PM Reply | Quote Moderator 1 Sign in to vote Produced from the idl file? Thats not possible. You defined your project to use precompiled header files. So your c file or cpp files must include the file that is defined for precompilation at the top of it. Usually #include fatal error c1010 "stdafx.h" must be placed into your cpp file. If you want to include the c file created form the idl. You can either include it into obne of your files, or you remove the options to use precompiled headers for this specific source file. Friday, March 24, 2006 9:34 AM Reply | Quote Moderator 0 Sign in to vote Thank you Mr. Martin, Now i got after setting the precompiled headers off. It is in Project-> Settings->C/C++->Category->Precompiled headers->not using precompiled headers. Thanks once again. Monday, March 27, 2006 2:18 AM Reply | Quote All replies 1 Sign in to vote Produced from the idl file? Thats not possible. You defined your project to use precompiled header files. So your c file or cpp files must include the file that is defined for precompilation at the top of it. Usually #include "stdafx.h" must be placed into your cpp file. If you want to include the c file created form the idl. You can either include it into obne of your files, or you remove the options to use precompiled headers for this specific source 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. In .cpp file the statement #include
Programming Boards C++ Programming error C1010: unexpected end of file while looking for precompiled header. Getting started with C or C++ | C Tutorial | C++ Tutorial | C and C++ FAQ | Get a compiler | Fixes for common problems Thread: error C1010: unexpected end of file while looking for precompiled header. 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 Visit Homepage Registered User Join Date Aug 2007 Location INDIA Posts 13 error C1010: unexpected end of file while looking for precompiled header. Hello!I tried out a program on constructors in VC++ 2008 Express Edition and Turbo C++.On compilation both of them showed 0 errors and 0 warnings.But while running the program VC++ showed: "fatal error C1010: unexpected end of file while looking for precompiled header. 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. Could any one tell me what's the reason behind and how to fix the problem? My code in VC++: Code: #include"stdafx.h" #include