Hello OBJ-C

Hello obj-c, I just did my first obj-c app from Ubuntu with GNUStep ,see!

Screenshot

Things you need to know to compile the hello world app with GNUStep:

  sudo aptitude install gnustep gnustep-devel
  chmod +x  /usr/share/GNUStep/MakeFiles/GNUStep.sh
  /usr/share/GNUStep/MakeFiles/GNUStep.sh

source code here, very simple !

</p>

<h1>import &lt;Foundation/Foundation.h&gt;</h1>

<p>int main (void)
{
    NSLog (@&amp;amp;quot;Hello obj-c !&amp;amp;quot;);
    return 0;
}

GNUMakeFile:

include $(GNUSTEP_MAKEFILES)/common.make
APP_NAME = HelloWorld
HelloWorld_HEADERS =
HelloWorld_OBJC_FILES = main.m
HelloWorld_RESOURCE_FILES =
include $(GNUSTEP_MAKEFILES)/application.make

that’s it !

About caker

Welcome to WebCaker. My name is Zhang tongzhu( Nickname : Caker) . I'm 30-year-old, currently working as full time PHP web application developer and learn the iPhone development at same time.
This entry was posted in Objective-C and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>