Can you give us the modifications? By the end of the week we have a package !
No problem. What I have is attached.
I hope you did not touch the wrappers, though: that is pure pascalification and has almost no speed penalty because I inlined it.
https://www.youtube.com/watch?v=otCpCn0l4Wo If you want to capture all the output to terminal in Unix OS, you may use FpDup2
Yes the last resort is to try redirect all terminal output.
Your example works as expected (thank you very much for that example code Fred vS).
The only drawback is the need for a file (or files in this case: err and out)
example 3 in the attachment show the use of your approach.
i mistakingly said compiling --with-android made no difference (i forgot to copy the new libapl to /usr/local/lib/apl/libapl.so) before compiling
No problem. I was expecting erors like that would surface when compiling for android.
Thanks you for the feedback toby.
would setting COUT to stdout be this solution for the stdout problem in the fpc code using libapl?
No, unfortunately that would not solve the issue. Its pretty technical, especially on/for Linux. E.g. I am trying to find a better solution but I am also not very well versed in such matters.
More important (e.g. first step) is that the library works as expected
attachment update 2: I have re-arranged the examples, included some original documentation from APL trunk and added the two callback related functionality (with very simple invocation examples)
attachment update 2b: Added Thaddy's additions.
attachment update 3: almost all API calls are now available. Added, extended callback example, redirection example, license (PIF) and ulibapl.pas can now be compiled in mode Delphi as well.