comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm-host.bauhaus@maps.futureapps.de>
Subject: Re: gnatmake error I don't understand
Date: Sat, 05 Apr 2014 10:17:07 +0200
Date: 2014-04-05T10:17:08+02:00	[thread overview]
Message-ID: <533fbc04$0$6713$9b4e6d93@newsspool2.arcor-online.net> (raw)
In-Reply-To: <9412dfa1-8fae-4396-b7cf-06ea9554de6c@googlegroups.com>

On 04/04/14 22:02, drrob106@gmail.com wrote:
> How would I write the gpr file if I were to try to have the main program in the package, as I've tried to do here?

Find switch -z in GNAT's documentation, e.g.

`-z'
      No main subprogram. Bind and link the program even if the unit name
      given on the command line is a package name. The resulting
      executable will execute the elaboration routines of the package
      and its closure, then the finalization routines.


You could call a subprogram from the package body's begin
block, or just treat the package body's begin block as a
procedure's body.



  parent reply	other threads:[~2014-04-05  8:17 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-04  0:35 gnatmake error I don't understand agent
2014-04-04  0:44 ` agent
2014-04-04  4:14 ` Per Sandberg
2014-04-04  7:37   ` Simon Wright
2014-04-04  7:50 ` Simon Wright
2014-04-04 13:35   ` Tero Koskinen
2014-04-04 13:41   ` Robert A Duff
2014-04-04 17:14     ` Simon Wright
2014-04-04 17:45       ` Adam Beneschan
2014-04-05  0:35       ` Robert A Duff
2014-04-05  0:52         ` Adam Beneschan
2014-04-04 21:27     ` Randy Brukardt
2014-04-04 18:48 ` Stephen Leake
2014-04-04 19:25   ` Simon Wright
2014-04-04 20:02     ` drrob106
2014-04-04 20:43       ` Shark8
2014-04-04 22:58         ` Jeffrey Carter
2014-04-04 20:48       ` Simon Wright
2014-04-05  0:33       ` Robert A Duff
2014-04-05  8:17       ` Georg Bauhaus [this message]
2014-04-05 13:28         ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox