[fpc-pascal] Free Pascal created libraries used by other languages

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Dec 9 14:31:31 CET 2009


On 09 Dec 2009, at 14:23, Graeme Geldenhuys wrote:

> Is it possible, or is there something special that needs to be done to
> create a library that could be used by other languages?

Just make sure that the exported routines
a) are declared as cdecl or stdcall (depending on platform requirements)
b) don't have parameters or function results that are Pascal-specific  
(since you may not be able to represent them in other languages), and  
in particular no reference-counted, types (local variables don't matter)


Jonas



More information about the fpc-pascal mailing list