Re: Dynamic Plug-in Loading with Ada



Preben Randhol <randhol+cla@xxxxxxx> 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
.



Relevant Pages

  • Re: File with .so extension built with C++ initially for older version causing problems.
    ... not sure for Linux) from LabVIEW's tools ... Is this because the shared libraries were created using LabVIEW ... Also, when a shared library for Linux is created(whether using LabVIEW or gcc), does it automatically generate a Makefile file? ...
    (comp.lang.labview)
  • Re: Linux, X, ld, gcc, linking, shared libraries and stuff
    ... I suppose that the same is possible for Linux. ... LD...I could, of course, just continue to use GCC and everything would be ... I then attempted to determine what shared libraries were linked ... I don't know if Linux ldd is just different or if this is an indication of a problem. ...
    (alt.lang.asm)
  • Re: Files Stored on NTFS
    ... I can't switch between windows, no music plays, etc. CPU usage is at ... shared libraries, all programs will have code in them that, for example, ... dynamically linked executables named ".ident", ... among other things) Linux executable use ...
    (alt.os.linux)
  • Re: You guys should give linux a try
    ... Linux offers dozens of variants. ... The Windows handling of shared libraries seems much worse, ... I have rarely had to manually mess with a shared library on linux because ... manually update his version of Adobe Acrobat. ...
    (rec.photo.digital)
  • Re: dlopen portability
    ... |> On linux there is an interface to dynamically link against shared libraries ... whereas on Linux you have to link to libdl; ...
    (comp.unix.programmer)