comp.lang.ada
 help / color / mirror / Atom feed
From: Jean-Pierre Rosen <rosen@adalog.fr>
Subject: Re: Interfacing Ada with Ada
Date: Wed, 02 Dec 2009 17:21:35 +0100
Date: 2009-12-02T17:21:35+01:00	[thread overview]
Message-ID: <h646fh.0q2.ln@hunter.axlog.fr> (raw)
In-Reply-To: <b5e58b4a-ef88-4157-b97c-4c3002bbde3e@r40g2000yqn.googlegroups.com>

dhenry a �crit :
> Hello,
> 
> Is it possible to interface Ada code compiled with an older compiler
> (gnat 3.14) and for which I just have specs (ads), objects and ali
> files (so I can't recompile it), with Ada code compiled with a newer
> compiler (gnat 2009), and for which I have all the sources?
> 
Simple answer: no. The ali file contains the version of the compiler
that was used, and the binder will refuse a unit from a different version.

Now, if you are in a desperate situation, you can try and edit the ali
file to fool the binder (it is a plain text file, and quite easy to
understand). Who knows? If you are very lucky, it might even work...
-- 
---------------------------------------------------------
           J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr



  reply	other threads:[~2009-12-02 16:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 14:54 Interfacing Ada with Ada dhenry
2009-12-02 16:21 ` Jean-Pierre Rosen [this message]
2009-12-02 17:40   ` Pascal Obry
2009-12-02 22:15 ` sjw
2009-12-03  7:48   ` dhenry
2009-12-03 20:03     ` Pascal Obry
2009-12-05 10:22     ` Florian Weimer
replies disabled

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