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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FREEMAIL_REPLY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,e129fce28b791a21 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-31 01:54:03 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp1.proxad.net.POSTED!not-for-mail Message-ID: <3A4F01B1.E7C9F56C@bigfoot.com> From: =?iso-8859-1?Q?Fran=E7ois=20Godm=E9?= X-Mailer: Mozilla 4.75 [fr] (X11; U; Linux 2.2.16-22 i586) X-Accept-Language: fr, en-US, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Dynamic Linking (as in dlfcn.h for c)? References: <20001230223803.03778.00000020@ng-mm1.aol.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Sun, 31 Dec 2000 09:51:48 GMT NNTP-Posting-Host: 212.27.40.136 X-Complaints-To: abuse@proxad.net X-Trace: nnrp1.proxad.net 978256308 212.27.40.136 (Sun, 31 Dec 2000 10:51:48 MET) NNTP-Posting-Date: Sun, 31 Dec 2000 10:51:48 MET Organization: Guest of ProXad - France Xref: supernews.google.com comp.lang.ada:3485 Date: 2000-12-31T09:51:48+00:00 List-Id: Matt Corby a �crit : > I am in the design stages of writing a program which must load shared libraries > at run time. It will need to load possibly several dozen to over a hundred > shared libraries, depending on how many the user needs. It is a real-time > sound producing system, which means CORBA, etc. are ruled out for performance > reasons. > > I have done a small amount of coding ( < 1000 lines) for the program already, > and used the dlfcn.h and dl.so library (on red hat linux) to implement the > plugin infrastructure using shared libraries. Does Ada (i have GNAT 3.13p) > have a clean way to implement this. It would be preferable if the .so files > that it loads can be in any language, but it is not a requirement. > > I could write an Ada binding to dlfcn.h, but i'm a beginner at Ada, and not too > experienced with c either (most of my programming has been with x86 assembler) > so i'm not sure if i could do it. Also i would like it if there was an Ada way > to do this. > > Thanks, > Matt Corby (mattcorby@yahoo.com) On Red Hat Linux and others RPM-based system, this problem is addressed by the RPM package AdaPlugins that you can find at www.gnuada.org.