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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3b29116893873fe2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!news.germany.com!newsfeed1.funet.fi!newsfeeds.funet.fi!nntp.inet.fi!inet.fi!newspeer1.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Thunderbird 1.5.0.7 (X11/20060913) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Setting up an Ada hello world project References: <1162322045.860579.159590@i42g2000cwa.googlegroups.com> In-Reply-To: <1162322045.860579.159590@i42g2000cwa.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4OO1h.21343$E02.8753@newsb.telia.net> Date: Tue, 31 Oct 2006 20:58:40 GMT NNTP-Posting-Host: 83.250.106.238 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1162328320 83.250.106.238 (Tue, 31 Oct 2006 21:58:40 CET) NNTP-Posting-Date: Tue, 31 Oct 2006 21:58:40 CET Organization: Telia Internet Xref: g2news2.google.com comp.lang.ada:7308 Date: 2006-10-31T20:58:40+00:00 List-Id: 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: [...] > but the compiler complains that there are no Ada sources in this > project. How do I go about adding an Ada source? I just want to run > something like: > > with Ada.Text_IO; > > procedure Hello is > begin > Ada.Text_IO.Put_Line("Hello, world!"); > end Hello; You don't need a project file to compile a hello world program. Since you have Gnat you should put that in a file named "hello.adb" and then run "gnatmake hello.adb". This should produce an executable file named "hello.exe". I think you should let the Gnat project files wait a bit. Right now you can think of them as something GPS uses to store the settings you make. Later, when you're more familiar with Ada, you can start learning what Gnat project files are useful for. -- Bj�rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu