comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: cannot generate code for file a-excach.adb (subunit)
Date: Tue, 27 Jan 2009 09:15:43 -0800 (PST)
Date: 2009-01-27T09:15:43-08:00	[thread overview]
Message-ID: <a34d461a-0364-4d53-ae57-995b87e62643@w1g2000prk.googlegroups.com> (raw)
In-Reply-To: gln6a4$sql$1@ccpntc8.in2p3.fr

The error message from GNAT is because Ada.Exceptions.Call_Chain is a
separate subprogram which is really part of the package
Ada.Exceptions; it is a subunit, not a child unit. GNAT refuses to
compile separate units separately; it will compile separate units when
it compiles their enclosing unit.

What this boils down to is:

gnatmake a-excach.adb

gives the error "cannot generate code for file a-excach.adb (subunit)"

gnatmake a-except.adb

compiles both a-except.adb and a-excach.adb into one object file, a-
except.o.

--
Ludovic Brenta.



  reply	other threads:[~2009-01-27 17:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-27 14:21 cannot generate code for file a-excach.adb (subunit) Lucretia
2009-01-27 14:38 ` xavier grave
2009-01-27 17:15   ` Ludovic Brenta [this message]
2009-01-27 17:19     ` Lucretia
2009-01-27 17:24       ` Lucretia
2009-01-27 18:13   ` Lucretia
2009-01-27 22:43     ` xavier grave
replies disabled

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