From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,7993782f4ec0bb4f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!217.73.144.44.MISMATCH!feeder.ecngs.de!ecngs!feeder2.ecngs.de!proxad.net!feeder1-1.proxad.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Interfacing Ada with Ada Date: Wed, 02 Dec 2009 17:21:35 +0100 Organization: Adalog Message-ID: References: NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1259773918 21871 195.25.228.57 (2 Dec 2009 17:11:58 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Wed, 2 Dec 2009 17:11:58 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: Xref: g2news1.google.com comp.lang.ada:8288 Date: 2009-12-02T17:21:35+01:00 List-Id: 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