[fpc-pascal] bridging an C++ shared library statically
Michael Schnell
mschnell at lumino.de
Mon Sep 23 10:53:31 CEST 2013
On 09/21/2013 04:04 PM, Xiangrong Fang wrote:
> Hi All,
>
> I need to use a C++ so file in FreePascal
AFAIK, you only can use C++ libraries in Pascal, if the functions for
the mutual interface are "flat" C function (i. e. ANSI C functions not
using any C++ classes). Of course, on top of this in both source codes
the same ABI spec needs to be defined (e.g. "PASCAL" or "STDCALL").
-Michael
More information about the fpc-pascal
mailing list