unexpected EOF
Hello collegues,
as an beginner, I found the following compiler-error:
unexpected EOF,
Where is my fault?
thank's for help
greez hick
Better yet, post the entire source code. And put a
in front of it so we could see it all nicely
Quote:Original post by fractoid
Most likely you forgot to close a curly brace or something. Post the full error message?
Yea, those curly braces can get ya good...
Especially if you leave a namespace open in a header file [sick] That one literally had me stumped for days...
I usually forget an #endif in the last file modified!
Or if you set higher warning level it can be a missing return at the end of the #endif in the header (this applies if you use #ifndef...#endif guards).
Hope that helps.
Or if you set higher warning level it can be a missing return at the end of the #endif in the header (this applies if you use #ifndef...#endif guards).
Hope that helps.
Quote:Original post by SirLuthorI've had a similar experience. I've learned my lesson and now make the curly brackets before I write the content of the code block I'm working on.
Especially if you leave a namespace open in a header file [sick] That one literally had me stumped for days...
Quote:Original post by Rob LoachQuote:Original post by SirLuthorI've had a similar experience. I've learned my lesson and now make the curly brackets before I write the content of the code block I'm working on.
Especially if you leave a namespace open in a header file [sick] That one literally had me stumped for days...
Same here, once burned, never again [grin] I now do braces (opening and closing) before code for anything, classes, functions, namespaces, the works. Certainly cuts down on that kind of error.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement