www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/26/08:04:29

From: "Signe Petersson" <Signe_P AT post10 DOT tele DOT dk>
To: <djgpp AT delorie DOT com>
Subject: undefined reference to `__rtti_user'
Date: Sun, 26 Apr 1998 14:04:49 +0200
Message-ID: <01bd710b$838bd440$a3a9efc2@default>
MIME-Version: 1.0

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???
/Kent Petersson


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019