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

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

Reply via email to