[fpc-devel] Packages, Generics

Florian Klaempfl florian at freepascal.org
Tue Sep 14 17:03:48 CEST 2010


Am 14.09.2010 01:26, schrieb Willibald Krenn:
> 
> [lots of useful information snipped]
>> - The ability to import/export functions, procedures AND variables
>> from binaries (although export from shared library only should be
>> sufficient). This works on Windows, but on Linux I had problems.
> 
> Packages also export/import RTTI, ClassVars, types, all the
> initialization/finalization code for each unit
> (@Packageunit1 at initialization$qqrv ..), compiler magic functions, and
> some other stuff like
> @Package1 at initialization$qqrv
> @Package1@@PackageUnload$qqrv
> @Package1@@PackageLoad$qqrv
> @Package1@@GetPackageInfoTable$qqrv
> Finalize
> Initialize
> @GetPackageInfoTable

Since this is also exported by static libs, the main issue is to create
proper exports in shared libs (including dlls).



More information about the fpc-devel mailing list