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

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


On 09 Dec 2009, at 14:30, Michael Van Canneyt wrote:

> On Wed, 9 Dec 2009, 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?
>>
>> For example. I'm interested in created a library (.dll and .so) of  
>> fpGUI
>> Toolkit, so the library can be reused by other fpGUI based  
>> applications
>> (reducing deployment size of executables), and allow languages like  
>> C to
>> use the fpGUI Library (.DLL and .SO) to create C gui applications.  
>> This
>> also means I can deploy "minor fixes" in the fpGUI library, without  
>> having
>> te recompile all the applications.
>>
>> Is this possible with Free Pascal?
>
> 1. Not without package support.

Ah yes, I missed the "library can be reused by other fpGUI based  
applications (reducing deployment size of executables)" part. That  
indeed requires packages support. Using it from another language  
doesn't though (but indeed requires flattening the interface).


Jonas



More information about the fpc-pascal mailing list