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,ccc3531aba8db12 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!not-for-mail Sender: malo@0x535862f0.boanxx18.adsl-dhcp.tele.dk Newsgroups: comp.lang.ada Subject: Re: Dynamic Plug-in Loading with Ada References: From: Mark Lorenzen Date: 28 Jun 2005 20:30:12 +0200 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: TDC Totalloesninger NNTP-Posting-Host: 83.88.98.240 X-Trace: 1119983412 dtext02.news.tele.dk 184 83.88.98.240:55635 X-Complaints-To: abuse@post.tele.dk Xref: g2news1.google.com comp.lang.ada:11701 Date: 2005-06-28T20:30:12+02:00 List-Id: Preben Randhol writes: > I don't know if you have seen this paper: > > http://www.gnat.com/pressroom_20.php# > Yep - I have read it. > The paper explains the procedure for doing this in Windows. Does anybody > know if one could do the same in Linux with shared libraries? It should not be hard to port the example given in the paper to Linux. Take a look at the man page for dlopen(). It describes how to open (load), close (unload) a shared object in Linux. The function similiar to Win32.Winbase.GetProcAddress on line 23 in the example, is called dlsym() in Linux. The technique using dlopen() and friends is used by fx. the web browser Firefox to load plugins. > > Thanks in advance > > Preben - Mark Lorenzen