In this section we will show you how to compile Objective C program on windows and Max OS x machine. Compiling Objective C program is necessary as it generates the executable program that can run.
Compiling Objective C on windows
Go to the directory where hello.m example program is
saved. You can use the following command.
$ cd c:/objectiveC
To compile program run the following command
$ gcc -o hello hello.m
This command will create a executable file of given name (here 'hello').
To run the program
You can see output of the program?
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: September 12, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles