I am running OSX.7.1 and using Xcode 4.1. Here is my code:
//
// main.c
// pgrm1
//
// Created by Steven on 9/16/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog(@"I will not be beaten!");
[pool drain];
return 0;
}
Running it fails and returns me with 20 errors. 17 parse errors in NSObjRuntime.h, NSZone.h and NSObject.h as well as two Semantic Issues with NSObjRuntime.h and lastly a LLVM compiler 2.1 error. Is it a syntax error or am I missing something? Thanks in advance.