This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

undefined reference to `vtable for ...'


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]