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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,124f89c41e690cd3 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!i3g2000cwc.googlegroups.com!not-for-mail From: gautier_niouzes@hotmail.com Newsgroups: comp.lang.ada Subject: Re: Ada to Ada Pragma Export/Import Date: 10 Aug 2006 06:06:44 -0700 Organization: http://groups.google.com Message-ID: <1155215204.831472.226990@i3g2000cwc.googlegroups.com> References: <1155161131.024343.273760@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: 206.122.158.4 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1155215210 14917 127.0.0.1 (10 Aug 2006 13:06:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 10 Aug 2006 13:06:50 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: i3g2000cwc.googlegroups.com; posting-host=206.122.158.4; posting-account=CZAoAgwAAAD9ntJQ85OlWL0_Q5EFdzP_ Xref: g2news2.google.com comp.lang.ada:6153 Date: 2006-08-10T06:06:44-07:00 List-Id: AskeyAJ@gmail.com schrieb: > I need to deliver object files (coded in Ada) to another team who will > access the public routines in their Ada code. I cannot deliver the > package bodies (but can deliver the object files, the specs, and the > ALI files). For example, suppose I want do deliver the hello_pkg.o and > hello_pkg.ads from the code below. > > My assumption is that I need to export the Say_It procedure in the > spec, and then the other team would need to import this procedure into > their code. Is this correct? And what is the syntax required? I've > tried the following but can't figure it out. You shouldn't need it, being from a certain Ada compiler to itself. With GNAT, the trick is to make the .ali files read-only, then it is sufficient to deliver the .ads, .o and .ali files of units. It is surely documented in the GNAT docs (where ?) HTH, Gautier ______________________________________________________________ Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!