[fpc-pascal]linking pascal objects/units into C

Peter Vreman peter at freepascal.org
Mon Jun 18 13:30:18 CEST 2001


> Hi!
> 
> We have a pretty old pascal project (delphi 1 on win95 -- already
> ported) and we need to interface it with various script languages
> (python, perl, etc.). So we need to link the pascal units to some
> C interfacing code for those script languages.
> 
> Has anyone done this before and can provide us with some hints how
> to archive this (i.e. creating a C header for the unit, calling
> conventions, argument passing)?
> 
> Target system is linux.

Using the latest snapshots (both 1.0.5 or 1.1 support it) it is possible to create a
shared library the same way as creating a dll under windows. This library can then be
linked in your C program







More information about the fpc-pascal mailing list