delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/14/13:15:14

From: "David Krmpotic" <zero AT email DOT si>
Newsgroups: comp.os.msdos.djgpp
Subject: code doesn't compile
Date: Sat, 14 Jul 2001 19:12:22 +0200
Organization: ARNES
Lines: 40
Message-ID: <9ipuf1$mvk$1@planja.arnes.si>
NNTP-Posting-Host: mb9-97i.dial-up.arnes.si
X-Trace: planja.arnes.si 995130657 23540 194.249.6.225 (14 Jul 2001 17:10:57 GMT)
X-Complaints-To: abuse AT arnes DOT si
NNTP-Posting-Date: Sat, 14 Jul 2001 17:10:57 +0000 (UTC)
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi, I I'm trying to compile following:
I invoke compiler by: gxx file.cpp

#include <iostream>

using namespace std;

class Base
{
public:
   virtual ~Base();
};

class Derived: public Base
{
public:
  const char* toString()
  {
     return "Derived object";
  }
};

int main()
{
    return 0;
}

The problem is that this code doesn't compile!!! I get this:

c:/djgpp/tmp\ccRDwF1w.o(.text+0x40=:t.cpp: undefined reference to 'Base
type_info function'
c:/djgpp/tmp\ccRDwF1w.o(.text+0x40=:t.cpp: undefined reference to 'Base
type_info node'

I'm using DJGPP compiler


What could that possibly be? 10x


- Raw text -


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