On Sun, 7 May 2017, nore...@z505.com wrote:


Then some small questions arise: is it possible to statically link fpc code into other programs rather than it being a DLL? for example .a files instead of a dll at runtime? Then theoretically, IPC could be linked in statically, not just as a dll.

In theory, yes. In practice: No. It needs a lot of compiler magic things, a
correctly initialized RTL etc. This is not needed for a DLL, which is more
like an .exe in this regard.


Indeed the dll functions will need to be flattened out (non object oriented) so all languages can use IPC, but that's not a problem for me - simply I write some wrappers around SimpleIPC objects and make them plain C/pascal like procedures, which is not so hard.

This is not a problem.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to