1 Replies - 1630 Views - Last Post: 15 May 2012 - 05:14 PM

#1 Vermiculus  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 10
  • View blog
  • Posts: 314
  • Joined: 26-February 09

So frustrated I could scream- Simple Class in ObjC throws 11733 Errors

Posted 14 May 2012 - 07:34 PM

Posted Image


I have absolutely no idea what I am doing wrong here. There must be something that I am doing wrong, some misplaced paren, some missing semicolon, but I just cannot find it.

A partial error listing can be found on pastebin, but I doubt it will help.

http://pastebin.com/xPdy0gPV

If anyone can point out the silly thing I'm doing, I would be greatly appreciative. I think it's just a matter of a second set of eyes... I've been looking at this for over an hour now and am still stuck on what should be the simplest of tasks.

:(

I've tried every combination of include/import, I've tried creating properties (pictured) instead of straight values, but nothing seems to make progress. I've even tried (in my desperation) importing MyClass.m instead of what makes C-sense: MyClass.h.

The fact that I'm getting an obscene number of errors suggests that I may be inadvertently looping, but there is nothing that should cause this.

EDIT:
The zoomed image cuts off on 13" screens.
http://i.imgur.com/MNhH0.png

This post has been edited by Vermiculus: 14 May 2012 - 07:37 PM


Is This A Good Question/Topic? 0
  • +

Replies To: So frustrated I could scream- Simple Class in ObjC throws 11733 Errors

#2 GWatt  Icon User is offline

  • member icon

Reputation: 262
  • View blog
  • Posts: 3,054
  • Joined: 01-December 05

Re: So frustrated I could scream- Simple Class in ObjC throws 11733 Errors

Posted 15 May 2012 - 05:14 PM

I believe you still need the braces for the instance variable declaration even if you don't have any.
@interface classname 
{ // instance vars here
}

@end



edit:
it also looks like your main.c is being treated like a C source file when it needs to be an Objective-C source file. Maybe rename it to main.m and see if that helps.

This post has been edited by GWatt: 15 May 2012 - 05:49 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1