Compiler Error Message
Hi, sometimes when I start coding program and I try to compile I get this weird error. I am using VC++ 6.0 and start new console window project and save all my files but I cant seem to find out what the problem is and why it happens.
(19) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
It''s funny cause I get that error compiling something like...
#include <string>
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
struct StudentList
{
string FirstName[10];
string LastName[10];
int Class[10];
};
int main()
{
return(0);
}
MSN Messenger: Thomas_Szafran@hotmail.com
Click on the error in the Output window and press F1. Read.
On the other hand, you shouldn''t mix old- and new-style headers. The new Standard C++ headers do not have the .h extension and define all their entities to be in the std namespace. Being largely template classes and methods, they wont work properly with older, non-template headers.
[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
On the other hand, you shouldn''t mix old- and new-style headers. The new Standard C++ headers do not have the .h extension and define all their entities to be in the std namespace. Being largely template classes and methods, they wont work properly with older, non-template headers.
[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement