This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Unusual error linking
- From: Laurent Pinchart <laurent dot pinchart at capflow dot com>
- To: gcc-help-return-8299-laurent dot pinchart=capflow dot com at gcc dot gnu dot org
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 08 Mar 2002 09:24:17 +0100
- Subject: Re: Unusual error linking
- References: <01f501c1c631$64fbb840$81486e0a@brooklyn>
- Reply-to: laurent dot pinchart at capflow dot com
>
>
>I'm running gcc on redhat linux
>gcc -v prints:
>Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
>gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>
>I'm getting a strange message when linking my files:
>EwokTransport.o: In function `CEwokTransport::~CEwokTransport(void)':
>EwokTransport.o(.text+0x9b5a): undefined reference to `CEwokTransport
>virtual table'
>EwokTransport.o(.text+0x9b63): undefined reference to
>`CEwokTransport::TAO_ServantBase virtual table'
>EwokFactory.o: In function `CEwokFactory::CEwokFactory(int)':
>EwokFactory.o(.text+0xcb): undefined reference to
>`CEwokTransport::TAO_ServantBase virtual table'
>EwokFactory.o(.text+0xd2): undefined reference to `CEwokTransport virtual
>table'
>
>There is no CEwokFactory constructor that takes an integer. I'm not sure
>what is wrong. Does anyone else
>know what could be causing this error?
>
If I'm not mistaken, the virtual tables are defined by the compiler when
it processes the source file where the destructor is defined. Did you
define a destructor ? If not try to do it explicitely.
Laurent Pinchart