yes, did try out that approach, failure. errors; gcc: Foundation: No such file or directory cc1obj: error: unrecognized command line option "-framework"
From [email protected] Fri Oct 31 12:57:46 2014 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ljZdqGL7JyLZoFLf09DNXsFB60pf10NE+3pvg2Lxse8=; b=eCFxSEG2fRAddlTTTDLyfz3p9A5o+iPQBujCRzQ2aXKVBPTq75UhE5XS9dPmPj2eVl f32K6hya6C5QweR15LZT6664UtHzFhL2//7B6/f5+Rke55ztwUdwf1qVubFM3PISfwAt WGkt6Nud+H0tMJ0WGovQoaEVrpo6HUH1LUIk7oPk876zDDH1LDaC3v+qjCsz1rnUx35m JNvrWSklwB+TtfF4vsFxs6W7u6GyUNKIcb3Buy6vkThEIhdQ9EGI5UsS/nGgCTRQvjF4 jkkf6OyT0Ozf9H/7OKQ4MGk+LITECRd65Qy8vbNWN2dUEiDp2F28yCw90v5+0ljJgmha fUNQ== MIME-Version: 1.0 X-Received: by 10.180.98.170 with SMTP id ej10mr3681115wib.17.1414760275253; Fri, 31 Oct 2014 05:57:55 -0700 (PDT) In-Reply-To: <[email protected]> References: <[email protected]> Date: Fri, 31 Oct 2014 16:57:55 +0400 Subject: Re: newbie : obj-c (older) hello world : compile issues ... From: Dmitry Ulyanov <[email protected]> To: Mayuresh Kathe <[email protected]> Cc: [email protected] Content-Type: multipart/alternative; boundary=f46d04428888a63fa10506b78b37 --f46d04428888a63fa10506b78b37 Content-Type: text/plain; charset=UTF-8 Maybe problem in here - helloworld*.h *? do this: mv helloworld.h helloworld.m&& gcc -framework Foundation helloworld.m -o helloworld 2014-10-31 9:13 GMT+03:00 Mayuresh Kathe <[email protected]>: > 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. :) > 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/sillent1987%40gmail.com > > This email sent to [email protected] --f46d04428888a63fa10506b78b37 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Maybe problem in here - helloworld<b>.h </b>?<div><br></di= v><div>do this:</div><div>mv helloworld.h helloworld.m&& gcc -frame= work Foundation helloworld.m -o helloworld<br><div class=3D"gmail_extra"><b= r><div class=3D"gmail_quote">2014-10-31 9:13 GMT+03:00 Mayuresh Kathe <span= dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">mayu= [email protected]</a>></span>:<br><blockquote class=3D"gmail_quote" style=3D"= margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">is there any= document/web-page i could refer to for a set of steps to<br> adhere to while compiling obj-c (pre-v2) code?<br> yes, i finally decided on my platform (netbsd) and language (obj-c),<br> and as advised have got a copy of the 'oop' book by mr. brad cox.<b= r> just that a simple helloworld.h snippet refuses to compile.<br> #import <stdio.h><br> #import <Foundation/Foundation.h><br> <br> int main(void) {<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 NSLog(@"Hello, World!\n");<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 return 0;<br> }<br> <br> <br> any help would be appreciated. :)<br> thanks,<br> -mayuresh<br> =C2=A0_______________________________________________<br> Do not post admin requests to the list. They will be ignored.<br> Objc-language mailing list=C2=A0 =C2=A0 =C2=A0 (<a href=3D"mailto:Objc-lang= [email protected]">[email protected]</a>)<br> Help/Unsubscribe/Update your Subscription:<br> <a href=3D"https://lists.apple.com/mailman/options/objc-language/sillent198= 7%40gmail.com" target=3D"_blank">https://lists.apple.com/mailman/options/ob= jc-language/sillent1987%40gmail.com</a><br> <br> This email sent to <a href=3D"mailto:[email protected]">sillent1987@gma= il.com</a></blockquote></div><br></div></div></div> --f46d04428888a63fa10506b78b37-- _______________________________________________ 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]
