[Libreoffice] c++ sample for calc add-on

Michael Stahl mstahl at redhat.com
Mon Dec 19 04:24:03 PST 2011


On 17/12/11 21:33, Lars Callenbach wrote:
> Hello,
> 
> I have a template for the quantlib addin which works for OO3.2.
> Unfortunately it does not work for LibreOffice-3.4.

i'm not familiar with Calc addins, but in general UNO based extensions
are supposed to work with newer versions as well (unless using
unpublished APIs that actually are changed, which is AFAIK quite rare).

> Does anybody have
> a template with necessary interface functions in c++ for LO-3.4? I
> have looked at the c++ examples in the SDK without success. Using the
> ideas of the java examples did not work. At the moment the plugin
> crashes LO if I try to insert a function.

that sounds like an LO bug; extensions are not supposed to crash LO;
please file in bugzilla and attach a backtrace if you can.

> By the way: I have to
> replace the onboard libstdc++ in ure-link/lib by the system libstdc++
> to use other libraries. Why is there on old libstdc++?

i think by now it is mostly for historic reasons.
until 5 years ago or so g++ and libstdc++ regularly changed ABI, so OOo
could not rely on the needed version being available on Linux systems.
but now libstdc++ seems to be stable, so i guess we could get rid of it
in LO4 (it also causes problems with gdb python-fu).

i don't know where the bundled libstdc++ comes from and why it's outdated.

> Help (and working code samples) would be appreciated.
> 
> Lars
> 




More information about the LibreOffice mailing list