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

Fernando Lozano fsl at centroin.com.br
Mon Jun 18 13:26:56 CEST 2001


> This now breaks down to: which fpc runtime libs do I need to link
> (basically) to a C programm which uses a pascal unit? I've added
> rtl/libsyslinux.a and rtl/libsysutils.a, but _haltproc and INITFINAL
> (used in libsyslinux.a) are still missing.

I solved the problem by not creating a unit but instead creating a
library. You can create a Unit including only external declarations to
make use of the library easier.

[]s, Fernando Lozano

More information about the fpc-pascal mailing list