Mail Archives: djgpp/1997/02/06/16:44:23
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 -