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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9c25e1f865c6aea4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-24 10:16:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Pragma Export and initialized variables Date: 24 Jan 2002 13:14:43 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <877f1a1d.0201230215.32fcb15a@posting.google.com> <877f1a1d.0201240050.28d93959@posting.google.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1011896336 28087 128.183.220.71 (24 Jan 2002 18:18:56 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 24 Jan 2002 18:18:56 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:19282 Date: 2002-01-24T18:18:56+00:00 List-Id: sandrobinetti@yahoo.com (Sandro Binetti) writes: > Robert A Duff wrote in message > > > You need to call adainit and adafinal on the C side before calling > > anything on the Ada side. > > Hi Bob, tnx for your answer. > > I read about "adainit" and "adafinal" inside the L.R.M., Um, no, these are GNAT terms, not Ada terms. You must have seen them in the GNAT user guide. > but the thing isn't so clear to me. Where are these procedures > defined? Which object do I have to include into the C project? Read the GNAT user guide again (and again ...), the section titled "A Simple Example". It talks about C++, but C is similar, only simpler :). -- -- Stephe