cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/06/16:42:41

Message-Id: <m0vsVpc-000S2jC@natacha.inti.edu.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT edu DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT natacha DOT inti DOT edu DOT ar>
Organization: INTI
To: "Stavel Jan" <STAVEL AT dame DOT fee DOT vutbr DOT cz>, djgpp AT delorie DOT com
Date: Thu, 6 Feb 1997 18:45:11 +0000
MIME-Version: 1.0
Subject: Re: Undefined reference to " class name " virtual table

Hi Stavel:
 
>             Hallo !
>     
>   Could anyone explain me in short what does the error from ld.exe 
> mean :   
> 
>     Error: .... (.text+0x10aa): name_of_file.cc : undefined reference 
> to 'name_of_class virtual table'
You forgot to include the file where the class is. For example where the 
constructor is declared. Just be shure that ld receive all the .o files that 
needs. The virtual table of the class is the table that says where are the 
virtual members (just pointers) needed to create an instance of the class.
 
>     I've look for the message ( delorie's archives, docs, info ), but 
> I didn't find explanation of it.
> 
>     How could I find out what is on the position .text+0x10aa in 
> readable form ?
Don't try (you can but you want that), just use -g3 to include full debug info 
and then GCC (or ld) will say the line.

SET 
--------------- 0 --------------------------------
Salvador Eduardo Tropea (SET).
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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