Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
unexpected end of file found
Remarks
The compiler reached the end of a source file without resolving a construct. The code may be missing one of the following elements:
A closing brace
A closing parenthesis
A closing comment marker (*/)
A semicolon
To resolve this error, check for the following:
The default disk drive has insufficient space for temporary files, which require about twice as much space as the source file.
An
#ifdirective that evaluates to false lacks a closing#endifdirective.A source file does not end with a carriage return and line feed.
Example
The following example generates C1004:
// C1004.cpp
#if TEST
int main() {}
// C1004
Possible resolution:
// C1004b.cpp
#if TEST
#endif
int main() {}