Home Iphone Objectivec Compiling Objective C

Related Tutorials


 
 

Share on Google+Share on Google+

Compiling Objective C

Advertisement
In this section we will show you how to compile Objective C program on windows and Max OS x machine.

Compiling Objective C

     

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

$ ./hello

You can see output of the program?

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: September 12, 2008

Related Tutorials

Discuss: Compiling Objective C   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:2
nemo
April 16, 2011
header file dir

when i include any header file from gnu header, it does not recognize it, how can i define the headers path for GCC?
rish
November 15, 2012
thanks

Thanks for your help.. It's very useful for me
DMCA.com