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-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Setting up an Ada hello world project Date: Wed, 01 Nov 2006 08:27:31 +0100 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <45484c63$1@news.post.ch> References: <1162322045.860579.159590@i42g2000cwa.googlegroups.com> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: atlas.ip-plus.net 1162366055 6225 194.41.146.1 (1 Nov 2006 07:27:35 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Wed, 1 Nov 2006 07:27:35 +0000 (UTC) User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) In-Reply-To: <1162322045.860579.159590@i42g2000cwa.googlegroups.com> X-Original-NNTP-Posting-Host: w01iwt.pnet.ch X-Original-Trace: 1 Nov 2006 08:27:31 +0200, w01iwt.pnet.ch Xref: g2news2.google.com comp.lang.ada:7315 Date: 2006-11-01T08:27:31+01:00 List-Id: markww schrieb: > I finally got a working compiler for windows. However, I'm not quite > sure how to go about compiling a hello world application. See: http://en.wikibooks.org/wiki/Ada_Programming/Basic#.22Hello.2C_world.21.22_programs > The default > project created one source file with the text: > > project Ada_LinkedList is > for Object_Dir use "..\..\..\"; > for Main use ("main"); You need to provide a "procedure Main" in a file called "main.adb". It is possible to override the naming convention - but this is an advanced topic. > end Ada_LinkedList; > > 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: Other poster told you not to use project files - but you should not take our word for it so here a set working project files for "hello world.": http://svn.sourceforge.net/viewvc/wikibook-ada/trunk/demos/GNAT/hello_world.gpr?view=markup http://svn.sourceforge.net/viewvc/wikibook-ada/trunk/demos/GNAT/wikibook_ada.gpr?view=markup As it is usual in larger project he project files are split into to: A general part and a specialized part. You can also see that project files are quite powerful and quite an advanced topic. > Where does one #include this in Ada? In C talk: Ada uses pre-compiled header files *only* and they are not "#include"-ed but "with"-ed. Try: http://en.wikibooks.org/wiki/Ada_Programming/Packages#Using_packages Martin