It's ok, found the problem 5 minutes after posting!
It was simple after all, I hadn't pressed return after the @end statements. Didn't realise this could cause build errors.
Greg,
That should depend on the warnings you've enabled. I believe I recommended enabling the "Missing Newline at end of File" warning. I also recommended turning on "Treat Warnings as Errors". Between the two, you end up getting compilation errors if your files don't end with a blank line.
In theory, this should help various source control tools--however, I'm not sure how useful it is in practice anymore. Furthermore, I've found that I will occasionally get a file that keeps triggering this error on each build (I believe it's a file auto-generated by Apple). So, I often leave the missing newline warning off these days.
Glad you were able to figure it out,
-Rich-
Hi. I am on page 263 of Chapter 5 where I am supposed to run the app.
When I try to do so it fails and I get 3 issues all the same appearing.
I have one in GraphStats.m and two in GraphStats.h and they all say:
"Lexical or preprocessor Issue
No Newline at end of file"
They all point to the @end statements. After comparing my code to yours and not finding any errors, I copied your code into my build and the errors are still there. Your sample app builds fine though without errors and mine still crashes.
I'm sure it's a simple error on my part but I just can't work it out. Any ideas?
Thanks in advance,
Greg.