I am testing the Linux version of LibreOffice
Version: 220.127.116.11 Build ID: 1:6.0.7-0ubuntu0.18.04.10 CPU threads: 8; OS: Linux 5.0; UI render: default; VCL: x11; Locale: en-US (en_US.UTF-8); Calc: group
for tests I created a simple xls page with one macro (Sub mysub) to call a shared library test.so (64 bit, compiled with CLang and tested with Python), I have tested several modifications (meaning changing the “Private Declare Function mytest…”) of the code working with the Windows version
Private Declare Function mytest Lib "test.so" (ByVal p As Long) As Long Sub mysub Dim i As Long i = mytest(5) end Sub
however (in all my tests) when debugging (step by step) some variant of the code
Private Declare Function mytest Lib "test.so" (ByVal p As Long) As Long
BASIC runtime error. '73' Not implemented.
my questions :
1) does the LibreOffice Linux Basic allow to access my test.so library ? 2) if yes, which is the correct way to code this macro so that LibreOffice interpreter calls dlopen() or a equivalent system method ?
I understand that this request may appear basic but still I was unable to find a working example for Linux version of LibreOffice…
thanks for help.