<div dir="ltr"><div><div><div><div><div><div>Hi All,<br><br></div>I need to use a C++ so file in FreePascal. I have written a C wrapper for it, which successfully connected to Pascal.<br><br></div>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.<br>
<br></div>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?<br>
<br></div>My project is hosted at: <a href="https://github.com/xrfang/CTPas/">https://github.com/xrfang/CTPas/</a><br><br></div>Thanks a lot.<br><br></div>Xiangrong<br></div>