• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C++ / MSVC 6.0 question... WHAT DOES THIS ERROR MESSAGE MEAN?!?

Superwormy

Golden Member
fatal error C1010: unexpected end of file while looking for precompiled header directive


What the heck does that mean and how the heck do I fix it...???

This is all my code right here:


#include "iostream.h"
#include <string>
using namespace std;

#include "Console.h"

int main(int argc, char* argv[])
{
return 0;
}


 
probably means it can't find iostream.h or Console.h in the program's directory. The should be in brackets not quotes, since they are built in. It's also bad form to have the #includes seperated.
 
It means
1. You project settings say to "use precompiled headers"
2. You've managed to delete the line:
#include "stdafx.h"
...from one or more of your .cpp files.

 
All the wizard-generated projects in VC++ have precomipled headers set to use stdafx.h.
just put #include "stdafx.h" at the top of your .cpp file.

Or if you want to actually take advantage of precompiled headers, copy/move your includes to the stdafx file and put #include "stdafx.h" where they are now.
 
Back
Top