RTTI not supported?

RTTI not supported?

Post by Shend » Thu, 24 Oct 1996 04:00:00



I'm wondering if RTTI is really supported in g++-2.7.2,because I was trying
to do something very simple(e.g. typeid("object")) and everytime I've got
the error from compiler about streambuf.h(?).
I have gcc-2.7.2 with ld-1.8 and libg++-2.7.2 for Linux,and the same things
I was trying to do on Alpha with gcc-2.7.2 and libg++-2.7.2.The sequence was the same in both cases.
So,maybe somebody succeeded with RTTI anyway,and if yes how?
Thanks,in advance


 
 
 

RTTI not supported?

Post by Ralf W. Steph » Fri, 25 Oct 1996 04:00:00


Quote:Shender writes:
> I'm wondering if RTTI is really supported in g++-2.7.2,because I was trying
> to do something very simple(e.g. typeid("object")) and everytime I've got
> the error from compiler about streambuf.h(?).

RTTI with gcc needs all C++ code compiled with -frtti.  This
means you also need a libstc++.a compiled with -frtti.  I never
heard that anyone succeeded in trying that under Linux.

RTTI will be default in 2.8.0.  This will be a huge step.
Expect to see many broken applications.

ralf
--
Lynx-enhanced pages at http://www.bayreuth-online.de/~stephan

 
 
 

1. Porting RTTI to linux from dog

I'm working on porting a rather large, complex, graphics intensive program,
which was written in dos, using borlnd c++ (it uses a custom dos extender too,
so it's all 32 bit), and is heavily RTTI intensive to UNIX (will run in X). I
want to get it running under linux first, as it currently uses some PC specific
stuff which I don't want to change yet. I am using libg++ 2.7.2, and know about
to -frtti flag, but it still complains about a good many rtti-ish things. I am
including <typeinfo> (no '.h'). Are there any common problems with porting rtti
stuff from dos to linux?

I am aware that the 2.7.2 libg++ rtti support is very alpha, but I get an
Internal Compiler Error when I try to compile 2.8.0b4, and I'm not willing to
wait to have that fixed, and am too lazy to fix it myself :) If anyone has a
libg++ which supports rtti (fully maybe? :), or knows of any other libs that do
rtti, and like linux (or at least will work with it), I'd love to get my hands
on it. I have found one library, but it likes AIX (and not linux), and, as
previosly stated, I'm lazy, and thus don't want to try to port that so that I
can port something else!

Thanks

--
Justin (Gus) Hurwitz

Current Time: Sat Sep 21 13:25:32

2. Boot messages missing

3. HELP: Sun RTTI problems (*again*) !!

4. SCO 5 & SAMBA problem: Network is busy ???

5. How do you make fstreams and rtti work together?

6. Tandem Emulation

7. HELP: More Sun RTTI compile & link problems !!

8. SCSI vs IDE?

9. SUMMARY: RTTI libg++ libstdc++ and abject failure

10. RTTI and namespaces

11. RTTI error with SunPro C++ compiler on Solaris 2.5.1

12. about rtti option

13. GNU C++ compiler and RTTI