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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Elaboration Question Date: Sun, 04 Jan 2015 12:05:04 +0000 Organization: A noiseless patient Spider Message-ID: References: <2f5e2392-68b0-4fe0-a224-57a060a6fd56@googlegroups.com> <54a83845$0$5118$426a74cc@news.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="da19c0dc8eec016b1dd8c302a793eb7c"; logging-data="29640"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZTklpI/PF6amBmZdEY76b8ymmDbfygp0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:A8wx9tYoSDouCpjOnbQ5vgi6bvw= sha1:Kv9zHzkKi3SdcJWkbr/6IMxYLkE= Xref: news.eternal-september.org comp.lang.ada:24339 Date: 2015-01-04T12:05:04+00:00 List-Id: Jean François Martinez writes: > If using Gnat then when main program is in another language it must > call adainit. This will take care of elaboration. If you can build your Ada library as a stand-alone library[1], adainit and adafinal (or equivalent; I think they're named {lib-name}_init, _final) get called automagically. [1] https://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Stand-alone-Library-Projects.html