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.

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.
-- 
Phoenix


        

        
                
__________________________________________________________________
D�couvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Cr�ez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to