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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2547bf2cbea1050f X-Google-Attributes: gid103376,public From: geert@fozzie.sun3.iaf.nl (Geert Bosch) Subject: Re: Dynamic linking using Gnat Ada Date: 1996/09/07 Message-ID: <50s54q$sq7@fozzie.sun3.iaf.nl>#1/1 X-Deja-AN: 179214825 references: organization: La Calandre Infortunee newsgroups: comp.lang.ada Date: 1996-09-07T00:00:00+00:00 List-Id: Martin Lorentzon (emwson@emw.ericsson.se) wrote: `` I'd like to dynamically link an Ada program using Gnat Ada. Is it possible? Any hints on how to? '' It is possible. In general you can proceed the same way you would do dynamic linking with gcc C/C++. Just remember that you have to call an initialization function before accessing Ada stuff from another language. After you're finished using the Ada objects you'll have to call the finalization function. If you want to link the run-time library dynamically, that's more difficult. Since GNAT has no documentation on the interface between the application code and the run-time library, building a dynamically linked version of the RTL is much harder. I do have one for OS/2, but it might change with each version of GNAT and that is the reason I don't want to distribute it. Regards, Geert -- E-Mail: geert@sun3.iaf.nl ``I think there is a world market for maybe five computers.'' Thomas Watson, chairman of IBM, 1943