| delorie.com/archives/browse.cgi | search |
| From: | sparhawk AT eunet DOT at (Gerhard Gruber) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: undefined reference to `__rtti_user' |
| Date: | Sun, 26 Apr 1998 13:53:38 GMT |
| Organization: | Customer of EUnet Austria |
| Lines: | 48 |
| Message-ID: | <35432df3.14768329@news.Austria.EU.net> |
| References: | <01bd710b$838bd440$a3a9efc2 AT default> |
| NNTP-Posting-Host: | e156.dynamic.vienna.at.eu.net |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Destination: "Signe Petersson" <Signe_P AT post10 DOT tele DOT dk>
From: Gruber Gerhard
Group: comp.os.msdos.djgpp
Date: Sun, 26 Apr 1998 14:04:49 +0200:
>I have some problems using virtual functions with DJGPP. Even with this
>stripped-down sample:
>
>class class_A {
> public:
> virtual void T() {;}
>};
>class class_B: public class_A {
> public:
> virtual void T() {;}
>};
>void main () {
> class_A *a1;
> a1 = new class_A;
> delete a1;
>}
>
>When compiling (I mean the linkstep):
>gcc test.cpp -o test.exe
>
>I get this error:
>e:/djgpp/tmp\ccdaaaaa(.text+0x87):test.cpp: undefined reference to `__rtti_user'
>
>What am I doing wrong???
Maybe your environment or installation is wrong? I just compiled this sample
with gcc on the commandline and with rhide and it both worked.
---
best regards
Gerhard Gruber
email: sparhawk AT eunet DOT at
g DOT gruber AT sis DOT co DOT at
FIDO: 2:310/81.11
Spelling corrections are appreciated.
Harrison's postulate:
For every action, there is an equal and opposite criticism.
"But this script can't sink!"
"She is made of irony, sir. I assure you, she can. And she will."
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |