From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Setting up an Ada hello world project
Date: Wed, 01 Nov 2006 08:27:31 +0100
Date: 2006-11-01T08:27:31+01:00 [thread overview]
Message-ID: <45484c63$1@news.post.ch> (raw)
In-Reply-To: <1162322045.860579.159590@i42g2000cwa.googlegroups.com>
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
prev parent reply other threads:[~2006-11-01 7:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-31 19:14 Setting up an Ada hello world project markww
2006-10-31 19:43 ` Jeffrey R. Carter
2006-10-31 19:56 ` markww
2006-10-31 20:50 ` Michael Bode
2006-10-31 20:58 ` Björn Persson
2006-10-31 21:05 ` markww
2006-10-31 21:08 ` markww
2006-11-01 7:27 ` Martin Krischik [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox