Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Linker error.
@ 1996-02-21  5:00 Hary J Walsh
  1996-02-22  5:00 ` Ketil Z Malde
  0 siblings, 1 reply; 3+ messages in thread
From: Hary J Walsh @ 1996-02-21  5:00 UTC (permalink / raw)


Hi,
I'm using g++2.7.2, libg++2.7.1 and Digital Unix 3.2B.

Rather than explain my entire situation, I think a simple quotation of
the error message should be enough.

When I try to link my application I get the following error message.

Unresolved:
DUnixCPUStatCollector virtual table
gmake: *** [alpha-OSF1/test] Error 1


The DUnixCPUStatCollector is derived from the genereic Unix
CPUStatCollector.  The above problem does not occur on link of
SCOCPUStatCollector.  

Does anyone know what this error message means?  Does anyone know how
to fix it?

Hary J Walsh
hwalsh@smsat.ilo.dec.com

	*** Please note.  The email address hwalsh@drlove.ilo.dec.com ***
	*** will expire soon.  My new address is the one above	      ***
-- 
Hary J Walsh
hwalsh@smsat.ilo.dec.com

	*** Please note.  The email address hwalsh@drlove.ilo.dec.com ***
	*** will expire soon.  My new address is the one above	      ***



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linker error.
  1996-02-21  5:00 Linker error Hary J Walsh
@ 1996-02-22  5:00 ` Ketil Z Malde
  1996-02-26  5:00   ` Joe Buck
  0 siblings, 1 reply; 3+ messages in thread
From: Ketil Z Malde @ 1996-02-22  5:00 UTC (permalink / raw)



I think I got 

unresolved:
XXX virtual table

when virtual functions in class XXX were not defined, just declared.
My guess is that you're inheriting the virtual declarations but not
the definitions of the methods in CPUStatCollector.

-kzm




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linker error.
  1996-02-22  5:00 ` Ketil Z Malde
@ 1996-02-26  5:00   ` Joe Buck
  0 siblings, 0 replies; 3+ messages in thread
From: Joe Buck @ 1996-02-26  5:00 UTC (permalink / raw)


ketil@ii.uib.no writes:
>I think I got 
>
>unresolved:
>XXX virtual table
>
>when virtual functions in class XXX were not defined, just declared.

I guess I'll need to add an FAQ entry for this one.  It's a side effect of
g++'s trick to generate only one copy of the virtual table even when
pragma interface/implementation is not used.   The side effect is that if
you forget to define the first virtual function of a class, you won't get
a virtual function table.
-- 
-- Joe Buck 	<jbuck@synopsys.com>	(not speaking for Synopsys, Inc)

Work for something because it is good,
not just because it stands a chance to succeed.	   -- Vaclav Havel



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-02-26  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-02-21  5:00 Linker error Hary J Walsh
1996-02-22  5:00 ` Ketil Z Malde
1996-02-26  5:00   ` Joe Buck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox