undefined reference to `vtable for ...'

Denys Duchier Denys.Duchier@ps.uni-sb.de
Wed Sep 4 15:51:00 GMT 2002


OK, I give up, what does this mean:

var_of.o: In function `WidthPropagator::WidthPropagator[not-in-charge](unsigned, unsigned)':
/home/denys/Mozart/mozart-gcc3/mozart/platform/emulator/mozart.h:725: undefined reference to `vtable for WidthPropagator'
var_of.o: In function `WidthPropagator::WidthPropagator[in-charge](unsigned, unsigned)':
/home/denys/Mozart/mozart-gcc3/mozart/platform/emulator/mozart.h:725: undefined reference to `vtable for WidthPropagator'
var_of.o: In function `WidthPropagator::getProfile() const':
/home/denys/Mozart/mozart-gcc3/mozart/platform/emulator/mozart.h:722: undefined reference to `WidthPropagator::profile'
var_of.o: In function `MonitorArityPropagator::MonitorArityPropagator[not-in-charge](unsigned, unsigned, unsigned, unsigned, unsigned)':
/home/denys/Mozart/mozart-gcc3/mozart/platform/emulator/mozart.h:725: undefined reference to `vtable for MonitorArityPropagator'
var_of.o: In function `MonitorArityPropagator::MonitorArityPropagator[in-charge](unsigned, unsigned, unsigned, unsigned, unsigned)':
/home/denys/Mozart/mozart-gcc3/mozart/platform/emulator/mozart.h:725: undefined reference to `vtable for MonitorArityPropagator'
var_of.o: In function `MonitorArityPropagator::getProfile() const':
/home/denys/Mozart/mozart-gcc3/mozart/platform/emulator/mozart.h:722: undefined reference to `MonitorArityPropagator::profile'
collect2: ld returned 1 exit status

the line numbers into mozart.h are inside an indirect base class of
WidthPropagator.  This indirect base class has no virtual functions.
I use #pragma interface/implementation.  Perhaps I did it wrong, but I
can't see it.  Any suggestions?

Cheers,

-- 
Dr. Denys Duchier			Denys.Duchier@ps.uni-sb.de
Forschungsbereich Programmiersysteme	(Programming Systems Lab)
Universitaet des Saarlandes, Geb. 45	http://www.ps.uni-sb.de/~duchier
Postfach 15 11 50			Phone: +49 681 302 5618
66041 Saarbruecken, Germany		Fax:   +49 681 302 5615



More information about the Gcc-bugs mailing list