Shared library

This is an old revision of Shared library, edited by Marcov at . The current revision is 40400.

(here if I say shared library I mean both .so as .dll, unless I really say "unix shared library" or "dll")

Currently there are a lot of Shared libraries bug reports. However, to my knowledge there is no real documentation about how shared libraries work in combination with FPC. That is both how shared libraries work now, how they should work, and how Delphi treats them.

Let's start with a simple sketch of what forms Delphi supports, because we will of course try to be as compatible as multiplatformwise reasonable.

Delphi

Delphi to my knowledge knows three (or four) ways of dynamic linking.

Besides these, Delphi can also generate dlls that are ActiveX components. T.B.D.