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,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)
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.
Jonas
_______________________________________________
fpc-devel maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel
