fatal error: end of file?
Weird problem. I was working on my current project and suddenly, during a normal compile when I maybe just changed a small thing in a totally different area of the code, I get this error message on the line after the last line of the source code:
Compiling...
main.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\opengl stuff\bb\main.cpp(1940) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
Blox Bonanza.exe - 1 error(s), 0 warning(s)
Again, this was totally spontaneous. I tried creating a new project and also rebooting, to no avail.
Thanks in advance,
Martin
______________Martin EstevaolpSoftware
September 19, 2000 09:16 PM
make sure that for each opening bracket { you have a closing one }
you might also want to change /Yu"stdafx.h" to this /YX"stdafx.h"
under the Project Options under the C/C++ tab under Project ->Settings
you might also want to change /Yu"stdafx.h" to this /YX"stdafx.h"
under the Project Options under the C/C++ tab under Project ->Settings
Also make sure that after the closing curly bracket after every struct and class definition, you have a semi-colon. It tends to screw up otherwise. Also, if you are using "stdafx.h" in a project created by VC, then you must include it in every source file you are using.
It can also be a comment that hasn't been closed (especially when they're nested). Like this:
The syntax highlighter thinks the comments have been closed, but they haven't...
Dormeur
Edited by - Dormeur on September 20, 2000 11:11:33 AM
int main(){ /* comment started ... /* comment closed */ return 0;}
The syntax highlighter thinks the comments have been closed, but they haven't...
Dormeur
Edited by - Dormeur on September 20, 2000 11:11:33 AM
Wout "Dormeur" NeirynckThe Delta Quadrant Development Page
Thanks for the replies, it was the curly braces problem. I figured it out 2 minutes after I posted and I forgot to delete it.
Martin
Martin
______________Martin EstevaolpSoftware
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement