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-Thread: 103376,1a80a77402b27e77 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.readnews.com!transit4.readnews.com!panix!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Shared library in Ada Date: Sat, 19 Apr 2008 11:31:17 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4809da5c$0$625$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1208619077 8687 192.74.137.71 (19 Apr 2008 15:31:17 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 19 Apr 2008 15:31:17 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:W/1a9M05UHAR+MfTiXAopbYPZXU= X-Original-Bytes: 1623 Xref: g2news1.google.com comp.lang.ada:21005 Date: 2008-04-19T11:31:17-04:00 List-Id: Sebastien writes: >> I suppose you are referring to dynamic linking at the OS level? > > Yes I am. > >> In this case you need to import functions from the library, perhaps >> using pragma Import. Also, have a look at descriptions of the Ada >> package hierarchy "Interfaces" > > But it's for interfacing with other languages, isn't it? Yes, that's the main use. But you are allowed to use Ada as a convention, and this is occassionally useful. However, I don't think you need any Export/Import pragmas to make shared libraries. - Bob