On Thu, Oct 30, 2014 at 11:13 PM, Mayuresh Kathe <[email protected]> wrote: > > is there any document/web-page i could refer to for a set of steps to > adhere to while compiling obj-c (pre-v2) code? > yes, i finally decided on my platform (netbsd) and language (obj-c), > and as advised have got a copy of the 'oop' book by mr. brad cox. > just that a simple helloworld.h snippet refuses to compile. > #import <stdio.h> > #import <Foundation/Foundation.h> > > int main(void) { > NSLog(@"Hello, World!\n"); > return 0; > } > > > any help would be appreciated. :)
Simply saying that your code doesn't compile isn't really helpful unless you tell us what the error is. Most probably it's the linker that's failing for you because the same thing works for me and I'm using clang (clang -fobjc-arc -framework Foundation helloWorld_objc.m). > > thanks, > -mayuresh > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Objc-language mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/objc-language/mohit.sharma0690%40gmail.com > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Objc-language mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/objc-language/archive%40mail-archive.com This email sent to [email protected]
