Hi All,

I need to use a C++ so file in FreePascal.   I have written a C wrapper for
it, which successfully connected to Pascal.

Now my question is, can I use the $linklib directive to link the C-Wrapper
STATICALLY, which in-turn use the shared so file?   I tried to do this but
it complained a lot of undefined references.

The key problem is, the {$linklib} instruction only tell FPC where to look
for external functions in the C Wrapper, but how can I tell the linker to
look for the ORIGINAL C++ so file to look for symbols required but not
defined in the C-Wrapper?

My project is hosted at: https://github.com/xrfang/CTPas/

Thanks a lot.

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

Reply via email to