Dynamically loading headers

From Free Pascal wiki
Revision as of 23:55, 31 October 2009 by Aison (talk | contribs) (→‎Abstract)
Jump to navigationJump to search

Template:points

Abstract

Currently, most library headers in fpc/packages support only static linking. Some exceptions are mysql, ibase, sqlite (and some other database headers). The idea is now to add dynamic linking support for other headers. This page should provide some place to list pro/contra, implementation details, etc...

Since dynamic linking is not supported by the compiler directly, it's required to define some framework, so that all headers are "implemented" uniform way and can be used from the users in an easy way.

Pro

  • loading libraries at runtime (plugin support)

Contra

Implementation (suggestions)

Framework

Example