[fpc-pascal] Dynamic linking variables

Henry Vermaak henry.vermaak at gmail.com
Thu Oct 25 11:59:48 CEST 2007

On 25/10/2007, ik <idokan at gmail.com> wrote:
> Hello List,
> I'm binding FAM/GAM to Pascal, and I do it in two flavors: static and
> dynamic linking (depending on the define). I found out that I require
> to link two variables with the library.
> How can dynamic link a variable using FPC ?

on unix you can use GetProcedureAddress in dynlibs to get any exported
symbol (according to the docs, at least).  dunno about windows,

maybe you need to patch the library source to add helper functions
that return those variables.

> Thanks,
> Ido
> --
> http://ik.homelinux.org/


More information about the fpc-pascal mailing list