Hi,
I am encountering problems when I try to compile C++
code. It is derivated from DocumentLoader example in
the SDK. I added some EventListener subclass (Close
and Terminate).
So for instance, I've got:
class CloseListener : public cppu::WeakImplHelper1< com::sun::star::util::XCloseListener >
I saw that in the settings.mk delivered with the SDK, the g++ option -fno-rtti was active.
What version of OOo and the SDK are you using? In sufficiently recent 1.9.x builds, OOo should be compiled without -fno-rtti, so your code should work there. (I'm not sure about the SDK, but if it still uses -fno-rtti while OOo does not, that would be a bug.)
-Stephan
If I compile without -fno-rtti, I've got this message
when linking :
undefined reference to `typeinfo for cppu::OWeakObject'
I really need to compile it with rtti because I'm using external code that relies on rtti (typeid, ...). So when I include this external code in my OOo class, it doesn't compile. What can I do?
What is the reason of such an option? I didn't succeed in finding an answer. Is it really mandatory? Why my example doesn't compile? Is that because I link
with lcppuhelpergcc3, lcppu, lsalhelpergcc3, lsal coming with OOo distribution? Maybe these libs were compiled with -fno-rtti too.
I'm under debian (kernel 2.6) and I use g++-3.3.1.
Thanks in advance for any clue.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
