Re: Linker error: undefined reference to typeinfo for A with no-rtti option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Дмитрий Оксенчук <oksenchuk89@xxxxxxxxx> writes:

> Linker doesn't say anything when i create any virtual function in B or
> replace virtual ~A() to virtual void f() for example.

Read about the key method and type_info objects here:

http://gcc.gnu.org/onlinedocs/gcc/Vague-Linkage.html

I won't go into all the details, but basically if you mix -frtti and
-fno-rtti code you need to ensure that any classes created in the
-frtti code have their key method compiled with -frtti.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux