[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to compile a .m

From: Jamie Ramone
Subject: Re: how to compile a .m
Date: Tue, 13 Oct 2009 21:28:14 -0300

On Tue, Oct 13, 2009 at 8:30 PM, Jean-Loïc Mauduy <address@hidden> wrote:
> Hi everyone!
> I am new to GNUstep and Objective C and some things seem difficult to
> understand for me...I hope you can help me. Precision : I'm on Windows.


> After installing the thing, I tried a simple hello world, so I put this code
> in a hello.h :
> #import <stdio.h>
> int main( int argc, const char *argv[] ) {
>     printf( "hello world\n" );
>     return 0;
> }
> and now, how do I compile?

You need a GNUstep makefile like the one Stef showed in his reply and,
for this code (which is plain C) a compiler. When you get into using
the GNUstep libs, which provide a plethora of objects in Objective C,
you'll have to make sure your compiler handles that language. If it
doesn't you'll need to get one. I recommend using the GNU Compiler
Collection, which includes an Objective C compiler along with the C
compiler and others.

> I'm a little bit lost...
> Thank you for your help.

Don't worry, we all were :-) But the great thing about GNUstep and the
Objective C language is that it's pretty easy to learn.

> _______________________________________________
> Discuss-gnustep mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Besos, abrazos, confeti y aplausos.
Jamie Ramone
"El Vikingo"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]