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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sat, 19 Apr 2008 13:41:14 +0200 From: Georg Bauhaus Reply-To: rm.tsoh+bauhaus@maps.futureapps.de User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Shared library in Ada References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4809da5c$0$625$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 19 Apr 2008 13:41:16 CEST NNTP-Posting-Host: 6b9c21ca.newsspool1.arcor-online.net X-Trace: DXC=A?V7lE6f`C;n`gW2MTm]<3ic==]BZ:af>4Fo<]lROoR18kFMKb8bM? X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:20999 Date: 2008-04-19T13:41:16+02:00 List-Id: Sebastien wrote: > Hi, > > I'm a new developper in Ada, and I found out a really suprising and > unknown language. I have a read a lot of stuff on internet, made many > tests. > > Now there is only one things I didn't get information about. > > I'd like to create a share object in Ada and use it in an Ada software. I suppose you are referring to dynamic linking at the OS level? 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". The imported functions will have to match subprogram declarations in your package mylibpkg. The documentation that came with your compiler should explain the switches needed for linking with shared libraries.