discuss-gnustep
[Top][All Lists]
Advanced

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

Re: newbie alert : how-to compile a helloWorld?


From: Stefan
Subject: Re: newbie alert : how-to compile a helloWorld?
Date: Fri, 31 Oct 2014 14:01:07 -0500
User-agent: K-9 Mail for Android

The easiest solution would be to run the following command:
gcc `gnustep-config --base-libs` hello world.m

That week get you what you need very quickly. However, once you move away from anything more complex than below world, you'll probably want to use a magnetite. GNUstep makes it fairly trivial. Have a look at http://www.gnustep.org/resources/documentation/Developer/Make/Manual/gnustep-make.html and http://www.gnustep.it/nicola/Tutorials/WritingMakefiles/

Those 2 links will get you started.

On October 30, 2014 11:28:37 AM CDT, Mayuresh Kathe <mayuresh@sdf.org> wrote:
hello,
i have finally got gnustep-make and gnustep-base compiled
and installed on netbsd 6.1.5 amd64.
now since i am just beginning to learn obj-c, i used a
sample helloWorld snippet from wikipedia (below);
#import <stdio.h>
#import <Foundation/Foundation.h>

int main(void)
{
NSLog(@"Hello, world!\n");
return 0;
}

and i can't figure out how to get it compiled.
i tried running 'gcc helloWorld.m', but got the
following message;
helloWorld.m:2:34: fatal error: Foundation/Foundation.h: No such file or directory
compilation terminated.

can someone please point out a resource which could do some amount
of initial hand holding?

thanks.

-mayuresh



Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
reply via email to

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