|Jun 10, 2009, 10:37 PM||#1|
Error: expected ';' before '-' token
I finally finished coding an iPhone web browser but have gotten this error in Xcode in two different places. And the code the errors are referring to are....
#import "Basic_BrowseAppDelegate.h" #import "Basic_BrowseViewController.h"
Any ideas? (screenshots of errors are attached)
Thanks to all help! And sorry if this has already been asked or its a stupid question... I'm new to programming.
|Jun 10, 2009, 10:46 PM||#2|
You'll get used to these errors in the future. The problems are within your header files but are getting flagged during import in the implementation files. You may be able to spot the problem if you focus your attention there. If you have trouble finding the error, please post the source from those headers and someone should be able to help.
Hint: check your method declarations in the header for trailing semicolons.
BTW: you're correct - there is no semicolon after the import command
|Jun 10, 2009, 10:55 PM||#3|
|Jun 11, 2009, 12:36 AM||#4|
Just a general note, when you get errors near the beginning of a file, after you've checked what it's telling you, start looking for missing semicolons and missing or mis-matched braces. A lot of times the compiler will get really confused in these cases and the real error may be far away from where it's telling you it is, and the error it's reporting might not be the real problem either.
Go outside, the graphics are amazing!
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Resolved: "Expected identifier" error when using C code||moonman239||iPhone/iPad Programming||4||Jan 23, 2014 02:32 PM|
|Monopoly fans vote to add cat, toss iron token||SilentPanda||Current Events||14||Feb 6, 2013 03:58 PM|
|Push Notification: unable to get device token||Narendar Singh||iPhone/iPad Programming||1||Jul 20, 2012 09:26 AM|
All times are GMT -5. The time now is 07:29 PM.