Game Development Community

Unexpected end of File

by Steve Lamperti · in Torque Game Engine · 10/29/2003 (3:12 pm) · 3 replies

I am getting the following error in MacCarbMath.cc:

Error : unexpected end of file
macCarbMath.cc line 69 }

Error : ### Error: Compilation aborted at end of file ###

This is with the latest head. I updated a few days ago, and started getting this error.

I am using CodeWarrior 8 on OS x 10.2.

I'm not sure what the parser is looking for, so I'm really not sure how to try to work around this.

Anyone else seeing the same thing?

#1
11/02/2003 (8:36 am)
I'm getting this too - on 10.3/Xcode. Anyone have any ideas?
#2
11/02/2003 (9:05 am)
Okay, I got it to work.

In the file MacCarbMath.cc there should be a function on line 15 declared as such:

ConsoleFunction( MathInit, void, 1, 10, "(DETECT|C|FPU)" 0

Note that the zero is not a typo on my part! You need to change it to a parenthesis, so you get:

ConsoleFunction( MathInit, void, 1, 10, "(DETECT|C|FPU)" )

Next, on line 17 you'll see:

obj;

Comment that out:

//obj;


I was able to get it to compile making these modifications.
#3
11/02/2003 (1:57 pm)
Goodness, I must have introduced that! I'm sorry!

Fixed it. I'm dumb.