I'm trying to compile some Objective-C code that was written by another programmer on a Mac. I'm using GNUstep for Windows to try and get this code working on my home computer. I really just need his code bits to run, and have little (read: zero) experience with Objective-C. Here is the code:

```
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//  AntennaPatternGenAppDelegate.m
//  AntennaPatternGen
//
//

#import "AntennaPatternGenAppDelegate.h"

@implementation AntennaPatternGenAppDelegate

@synthesize window;

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    // Insert code here to initialize your application 
}

@end
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

```

and here is the header file:

```
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  AntennaPatternGenAppDelegate.h
//  AntennaPatternGen
//
//

#import <Cocoa/Cocoa.h>

@interface AntennaPatternGenAppDelegate : NSObject <NSApplicationDelegate> {
    NSWindow *window;
}

@property (assign) IBOutlet NSWindow *window;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

```

I am using the following command to try to compile:

```
gcc -o AntennaPatternGenAppDelegate AntennaPatternGenAppDelegate.m -I /GNUstep/System/Library/Headers \
-L /GNUstep/System/Library/Libraries -lobjc -lgnustep-base

```

and getting an error saying "cannot find protocol declaration for 'NSApplicationDelegate'", along with several errors that look like syntax errors (stray '@' in program, and some expected identifiers that aren't there)

I've been googling this problem and it seems like the way that protocol declarations happen in Objective C might have changed at some point? People talk about the difference between 10.6 and previous versions of OSX... I'm not sure if this is the same problem I'm facing, or how to make GNUstep work with this older syntax. Again, I have very little idea what I'm talking about, just beginning to get into this programming, so if I've left crucial information out, please let me know.

Thanks for your time!