Objective-C under Ubuntu

If you are interested in iPod/iPhone programming but you have never ever used Objective-C you can easily check it out. You will not be able to write iPod applications, of course, but you can get familiar with the language. Below, are four easy steps towards Objective-C application development under Ubuntu:

1. Install Objective-C compiler

shell> apt-get install gobjc

2. Write simple Objective-C application (which, by accident looks almost like C one)

/* main.m */
#import <stdio.h>

int main( int argc, const char *argv[] ) {
printf( "hello world\n" );
return 0;
}

3. Compile the application

> gcc -o hello hello.m

4. Run it

shell> ./hello

That’s it. Enjoy!