From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3b29116893873fe2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!b28g2000cwb.googlegroups.com!not-for-mail From: "markww" Newsgroups: comp.lang.ada Subject: Re: Setting up an Ada hello world project Date: 31 Oct 2006 11:56:46 -0800 Organization: http://groups.google.com Message-ID: <1162324605.940929.208800@b28g2000cwb.googlegroups.com> References: <1162322045.860579.159590@i42g2000cwa.googlegroups.com> NNTP-Posting-Host: 67.154.89.221 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1162324611 18806 127.0.0.1 (31 Oct 2006 19:56:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 31 Oct 2006 19:56:51 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: b28g2000cwb.googlegroups.com; posting-host=67.154.89.221; posting-account=cNKOMg0AAADT2ug8oGSYYXo8bsDvrHzw Xref: g2news2.google.com comp.lang.ada:7301 Date: 2006-10-31T11:56:46-08:00 List-Id: Hi Jeff, This is the first time I'm using Ada, sorry if my questions seem absoultely ridiculous to you. I am using GPS - GNAT for windows. I created a new project called 'Ada_LinkedList'. I'd just like to be able to output something to screen, I'm not sure how what the compiler wizard created for me combines with the hello world snippet I found to produce an exe which will do that, Thanks, Mark On Oct 31, 2:43 pm, "Jeffrey R. Carter" wrote: > markww wrote: > > > I finally got a working compiler for windows. However, I'm not quite > > sure how to go about compiling a hello world application. The default > > project created one source file with the text:Glad to hear it. We could answer your questions better if you told us > what compiler you are using. Different compilers do things differently. > > > project Ada_LinkedList is > > for Object_Dir use "..\..\..\"; > > for Main use ("main"); > > > end Ada_LinkedList;This seems to be for a project called "Ada_Linkedlist" with a main > subprogram called "Main". This is compiler-dependent. > > > with Ada.Text_IO; > > > procedure Hello is > > begin > > Ada.Text_IO.Put_Line("Hello, world!"); > > end Hello;This seems to be an Ada procedure called "Hello". Why you think > something called "Ada_Linkedlist", referencing something called "Main", > will compile something called "Hello" is not clear to me. > > > Where does one #include this in Ada?One doesn't "#include" anything in Ada. > > -- > Jeff Carter > "Whatever it is, I'm against it." > Horse Feathers > 46