discuss-gnustep
[Top][All Lists]
Advanced

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

newbie alert : how-to compile a helloWorld?


From: Mayuresh Kathe
Subject: newbie alert : how-to compile a helloWorld?
Date: Thu, 30 Oct 2014 16:28:37 GMT

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



reply via email to

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