S
sieg1974
Hi,
this must be a stupid mistake, but I can't find it.
When I try to link the following code:
#include <iostream.h>
#include "TestSK.hh"
class Test_Impl : public POA_Test // , public PortableServer::RefCountServantBase
{
public:
Test_Impl();
~Test_Impl();
CORBA::Long getNumber();
private:
CORBA::Long theNumber;
};
Test_Impl::Test_Impl()
{
}
CORBA::Long Test_Impl::getNumber()
{
return( theNumber );
}
int main( int argc, char ** argv )
{
cout << "hello world\n";
return( 0 );
}
the linker returns these error messages
../main.o(.text+0x8d): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `VTT for Test_Impl'
../main.o(.text+0xa4): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `VTT for Test_Impl'
../main.o(.text+0xbf): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `VTT for Test_Impl'
../main.o(.text+0xd6): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `vtable for Test_Impl'
../main.o(.text+0xe5): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `vtable for Test_Impl'
../main.o(.text+0xf5): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `vtable for Test_Impl'
../main.o(.text+0x105): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `vtable for Test_Impl'
../main.o(.text+0x118): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `VTT for Test_Impl'
What could be wrong?
Thanks a lot,
Andre
this must be a stupid mistake, but I can't find it.
When I try to link the following code:
#include <iostream.h>
#include "TestSK.hh"
class Test_Impl : public POA_Test // , public PortableServer::RefCountServantBase
{
public:
Test_Impl();
~Test_Impl();
CORBA::Long getNumber();
private:
CORBA::Long theNumber;
};
Test_Impl::Test_Impl()
{
}
CORBA::Long Test_Impl::getNumber()
{
return( theNumber );
}
int main( int argc, char ** argv )
{
cout << "hello world\n";
return( 0 );
}
the linker returns these error messages
../main.o(.text+0x8d): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `VTT for Test_Impl'
../main.o(.text+0xa4): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `VTT for Test_Impl'
../main.o(.text+0xbf): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `VTT for Test_Impl'
../main.o(.text+0xd6): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `vtable for Test_Impl'
../main.o(.text+0xe5): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `vtable for Test_Impl'
../main.o(.text+0xf5): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `vtable for Test_Impl'
../main.o(.text+0x105): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `vtable for Test_Impl'
../main.o(.text+0x118): In function `Test_Impl::Test_Impl[in-charge]()':
: undefined reference to `VTT for Test_Impl'
What could be wrong?
Thanks a lot,
Andre