Difference between revisions of "Dynamically loading headers"

From Free Pascal wiki
(Abstract)
(Abstract)
Line 5: Line 5:
 
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...
 
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.
+
Since dynamic linking is not supported by the compiler directly, it's required to define some framework, so that all headers are "implemented" in an uniform way and can be used easily.
  
 
==Pro==
 
==Pro==

Revision as of 00:56, 1 November 2009

x

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" in an uniform way and can be used easily.

Pro

  • loading libraries at runtime (plugin support)

Contra

Implementation (suggestions)

Framework

Example