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,c7e4fc3344a1ea05 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-02 14:43:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!newsfeed.mathworks.com!intgwlon.nntp.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: using pragma export/adainit/adafinal with gnat... References: User-Agent: MT-NewsWatcher/3.2 (PPC Mac OS X) Message-ID: Date: Fri, 02 Aug 2002 21:43:42 GMT NNTP-Posting-Host: 144.132.42.132 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 1028324622 144.132.42.132 (Sat, 03 Aug 2002 07:43:42 EST) NNTP-Posting-Date: Sat, 03 Aug 2002 07:43:42 EST Organization: BigPond Internet Services (http://www.bigpond.net.au) Xref: archiver1.google.com comp.lang.ada:27628 Date: 2002-08-02T21:43:42+00:00 List-Id: Stephen Leake wrote: > If there is no elaboration required, it may be that the Ada compiler > does not generate 'adainit' and 'adafinal'. But it probably does. I was just trying to figure out how to do it, having only read about it previously. > If there is no elaboration required, and you have no cleanup either, > you don't need to call 'adainit' and 'adafinal'. But it's a good habit > to get into :). Indeed! (unless you -always- have pure packages). > What C compiler are you using? Different C compilers have different > link name conventions. > > Are you using gnatbind as recommended, and compiling the code it > generates, and linking with it? That's where 'adainit' and 'adafinal' > are defined. I was using gcc (cc1 actually) as the C compiler. I've found another section in the gnat user manual which explained all that had to be done, and it seems to be aok now. Thanks anyway. Dale