[fpc-devel]How to call fpc functions from C ? (fwd)
Jonas Maebe
jonas at zeus.rug.ac.be
Tue Jan 28 19:55:45 CET 2003
On dinsdag, jan 28, 2003, at 18:05 Europe/Brussels, Miroslav Ilias
wrote:
> we know how to call C-function from Pascal (on Linux at least).
> However,
> there are problems when trying to call Pascal function or procedure
> from
> the C-source.
> First I define the *pas file as a library and I link it with the C
> file.
> But the exe file gives error message: a.out: error while loading shared
> libraries: libfpclib.so: cannot open shared object file: No such file
> or
> directory.
Either move the created library to (/usr)/lib, or add the current
directory to the LD_LIBRARY_PATH environment variable. However, note
that shared library creation isn't really working yet (the init
routines of the necessary units, such as the system unit, aren't called
so routines that rely on that - such as most IO routines and the heap
manager - will not work)
Jonas
More information about the fpc-devel
mailing list