From: "G.B." <bauhaus@futureapps.invalid>
Subject: Re: Stackoverflow answer in need of update?
Date: Tue, 24 Feb 2015 13:21:27 +0100
Date: 2015-02-24T13:21:27+01:00 [thread overview]
Message-ID: <mchqau$hi5$1@dont-email.me> (raw)
In-Reply-To: <lyioes49mv.fsf@pushface.org>
On 23.02.15 22:10, Simon Wright wrote:
> And I don't see how to use it to produce an executable.
I'm still experimenting; the following command produces an
executable from a single source file with the help of gnatmake
only.
(This is perhaps nitpicking, but I still think it might be worth
adding that the "old" rule of 1 compilation unit per file
is no longer an absolute requirement.)
$ gnatmake -gnatl -gnateI1 multi.ada -gnateI2
gcc -c -gnatl -gnateI1 -gnateI2 -x ada multi.ada
GNAT GPL 2014 (20140331)
Copyright 1992-2014, Free Software Foundation, Inc.
Compiling: multi.ada (source file time stamp: 2015-02-24 12:14:35)
1. with Another;
2.
3. procedure Multi
4. is begin
5. null;
6. end Multi;
7.
8. with Ada.Text_IO;
9. procedure Another
10. is begin
11. Ada.Text_IO.Put_Line ("Another");
12. end Another;
13.
13 lines: No errors
gnatbind -x multi.ali
gnatlink multi.ali
$ ./multi
Another
$
next prev parent reply other threads:[~2015-02-24 12:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-23 17:50 Stackoverflow answer in need of update? G.B.
2015-02-23 21:04 ` Simon Wright
2015-02-23 21:10 ` Simon Wright
2015-02-24 12:21 ` G.B. [this message]
2015-02-24 17:55 ` Florian Weimer
2015-02-24 18:30 ` J-P. Rosen
2015-02-25 13:14 ` AdaMagica
2015-02-25 14:02 ` J-P. Rosen
2015-02-27 10:28 ` AdaMagica
2015-02-27 11:00 ` J-P. Rosen
2015-02-27 13:53 ` AdaMagica
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox