expected `;' before '(' token (solved)
by rennie moffat · in iTorque 2D · 01/03/2011 (7:08 pm) · 8 replies
Hi there,
I have asked in the Mac forums but have not yet recieved an answeer. I am hoping that someone here might be able to help me. I am trying to do some tests for a new app in XCode and am getting 33 errors all saying....
expected `;' before '(' token
Anybody know how to fix this?
I have asked in the Mac forums but have not yet recieved an answeer. I am hoping that someone here might be able to help me. I am trying to do some tests for a new app in XCode and am getting 33 errors all saying....
expected `;' before '(' token
Anybody know how to fix this?
About the author
My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.
#2
I can not see the error here.
Also these are untouched, I would think, XCode files that I have nothing to do with.
Weird.
01/03/2011 (8:36 pm)
example. Expected ) before (.(void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
I can not see the error here.
Also these are untouched, I would think, XCode files that I have nothing to do with.
Weird.
#3
Cause this is an iOS4 framework function and if it ticks out then its cause your SDK is not what it should be (iOS 4.2 if you want to upload anything)
01/04/2011 (12:32 am)
Sure that this line is the problem and not a line that calls this?Cause this is an iOS4 framework function and if it ticks out then its cause your SDK is not what it should be (iOS 4.2 if you want to upload anything)
#4
I had the exact same issue 5 mins ago, and I have a fix for you :-)
I did 2 things before recompiling but I suggest trying the 1st one
1, Right click the target and under Build tab scroll down and find the Compiler Version change it from GCC4.0 to GCC4.2
2, on the same Build tab set the Code Signing Identity, I dont think that will make any difference, but those were the 2 things I did before compiling.
I hope that helps.
01/04/2011 (9:45 pm)
Hi Rennie,I had the exact same issue 5 mins ago, and I have a fix for you :-)
I did 2 things before recompiling but I suggest trying the 1st one
1, Right click the target and under Build tab scroll down and find the Compiler Version change it from GCC4.0 to GCC4.2
2, on the same Build tab set the Code Signing Identity, I dont think that will make any difference, but those were the 2 things I did before compiling.
I hope that helps.
#5
I tried that but no luck.
hmmm.
@Marc
I am not sure what you mean. My SDK is there.
01/04/2011 (10:26 pm)
@StephenI tried that but no luck.
hmmm.
@Marc
I am not sure what you mean. My SDK is there.
#6
01/20/2011 (9:49 pm)
ok i just figured this out... right click on the 2 targets in XCode iTorque2DGame_device/iTorque2DGame_sim and click Get Info then scroll down to "Compiler Version" and select "System Default (GCC 4.2)" seemed to work for me! Hope it helps you out!
#7
But thanks!
01/20/2011 (10:03 pm)
I should have closed this off I guess. I just reinstalled XCode and created a new EMPTY project. It ran. So I just copied in the project folder and everything worked. But thanks!
#8
01/20/2011 (10:03 pm)
...
#9
02/12/2011 (12:52 pm)
That worked for me, Are you getting a lot of warnings?? Thanks
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft
Obviously there is an error in the lines it mentions.