Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: "Stavel Jan" , djgpp AT delorie DOT com Date: Thu, 6 Feb 1997 18:44:30 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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