delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/27/05:45:53

Date: Thu, 27 Mar 1997 13:30:47 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Bryan Murphy <bf461 AT cleveland DOT freenet DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: Hello, question, probably been asked a billion times before.
In-Reply-To: <199703270107.UAA01491@hcst.net>
Message-ID: <Pine.SUN.3.91.970327132925.9299R-100000@is>
MIME-Version: 1.0

On Wed, 26 Mar 1997, Bryan Murphy wrote:

> I have another file, called UNIVERSE.H/UNIVERSE.CC.  This simply
> has an object called UNIVERSE which contains a linked list of objects
> called OBJECT (each object in the universe).  This is where I get the
> problems.  I instantiated the OBJECT in the LLIST.CC file just as before,
> but when I compile I get 'Undefined reference to OBJECT virtual Table'
> errors and 'Undefined reference to OBJECT operator =='.

The bestway to get useful response is to post the shortest variant
of your code that exhibits the problem, together with the *exact*
command line you passed to gcc and the error message(s) printed by
the compiler, then ask people here to tell what's wrong with it.

Another place to ask about such problems is the Gnu C++ news group
(sorry, I don't know the exact name, maybe gnu.g++.help?).
 
> Also, any idea when Templates will finally be implemented into g++ 
> properly?  I really tend to rely on them heavily! :(

I cannot talk for the Gcc development team, but my guess is: probably
when ANSI C++ standard finally is out.  Until that time, you are using
a language that doesn't have a standard, where problems like these are
a fact of life.

- Raw text -


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