= ObjectiveC =

 * http://www.maheshsubramaniya.com/article/hello-world-in-objective-c-and-compiling-with-gcc.html

== Example with gcc-obj ==
{{{#!highlight objectivec
/*
http://ftpmain.gnustep.org/pub/gnustep/core/gnustep-make-2.6.8.tar.gz
http://ftpmain.gnustep.org/pub/gnustep/core/gnustep-base-1.24.9.tar.gz
http://ftpmain.gnustep.org/pub/gnustep/core/gnustep-gui-0.25.0.tar.gz
http://ftpmain.gnustep.org/pub/gnustep/core/gnustep-back-0.25.0.tar.gz

gcc -lgnustep-base -lobjc main.m -o main -L /usr/GNUstep/Local/Library/Libraries -I /usr/GNUstep/System/Library/Headers/ -fconstant-string-class=NSConstantString
*/

#import <Foundation/Foundation.h>
#import <stdlib.h>
#import <stdio.h>

@interface Hello:NSObject
    - (void)greet:(char *)msg msg2:(NSString *)msg2;
@end

@implementation Hello
    - (void)greet:(char *)msg msg2:(NSString *)msg2 {
        printf("Hello, World! %s %s \n", msg, [msg2 cString] );
        NSLog(@"Hello, World! %s %@", msg , msg2 );
    }
@end

int main(void) {
    NSString *str1 = @"ijk";
    id myhello = [ [Hello alloc] init];
    [ myhello greet:"GNUStep ..." msg2:str1 ];
    [ myhello release ];
    return EXIT_SUCCESS;
}

}}}