Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Billbobeany

macrumors newbie
Original poster
Aug 23, 2010
3
0
Hi, Im starting to learn objective C so i can make apps for mac and iphone. In the book im working from its got a hello program. Ive copied it and checked it and checked it again but i cant see whats wrong. I open xcode(3.2.1 or what ever is the newest with out the subscription) I click cocoa app, then write the code in 'main.m' and write

#import <Foundation/Foundation.h>

int main (int argc,const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog (@"Programming is fun!");

[pool drain];
return 0;
}


It comes up with something like 21555 errors. Please can some one tell me what im doing wrong. Ive been to nearly every apple store in the country and no one can help.
 
Last edited:
Post the text for the first of the 21555 errors.

Pretend we can't see your screen, so anything you see there is invisible to us. That means you have to be specific, and give actual text from actual errors.


You can see Xcode's version number by choosing "About Xcode" from the Xcode menu. Post the exact version number, and whether it's 64-bit or 32-bit.

It may also help to identify what model your computer is.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.