For the first problem, how would I check/correct that?
For the second:
Okay, I type in the command:
Code:
c++ ice_server.cpp -I/Ice-3.1.0/include -I./
And I get:
Code:
/tmp/ccoCrAz0.o(.text+0x1f2): In function `main':
: undefined reference to `Ice::initialize(int&, char**, Ice::InitializationData const&, int)'
/tmp/ccoCrAz0.o(.text+0x7bb): In function `main':
: undefined reference to `IceUtil::operator<<(std::basic_ostream<char, std::char_traits<char> >&, IceUtil::Exception const&)'
/tmp/ccoCrAz0.o(.text+0x8dc): In function `main':
: undefined reference to `IceUtil::operator<<(std::basic_ostream<char, std::char_traits<char> >&, IceUtil::Exception const&)'
/tmp/ccoCrAz0.o(.text+0x9be): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `IceInternal::GCRecMutexInit::GCRecMutexInit()'
/tmp/ccoCrAz0.o(.text+0x9f4): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `IceInternal::FactoryTable::FactoryTable()'
/tmp/ccoCrAz0.o(.text+0xa71): In function `__tcf_2':
: undefined reference to `IceInternal::FactoryTable::~FactoryTable()'
/tmp/ccoCrAz0.o(.text+0xa89): In function `__tcf_1':
: undefined reference to `IceInternal::GCRecMutexInit::~GCRecMutexInit()'
/tmp/ccoCrAz0.o(.gcc_except_table+0xcc): undefined reference to `typeinfo for IceUtil::Exception'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN3Ice6ObjectD2Ev+0xb): In function `Ice::Object::~Object()':
: undefined reference to `vtable for Ice::Object'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal8GCSharedD2Ev+0xb): In function `IceInternal::GCShared::~GCShared()':
: undefined reference to `vtable for IceInternal::GCShared'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN3Ice6ObjectC2Ev+0xd): In function `Ice::Object::Object()':
: undefined reference to `IceInternal::GCShared::GCShared()'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN3Ice6ObjectC2Ev+0x19): In function `Ice::Object::Object()':
: undefined reference to `vtable for Ice::Object'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal11ProxyHandleIN8IceProxy3Ice6ObjectEED1Ev+0x17): In function `IceInternal::ProxyHandle<IceProxy::Ice::Object>::~ProxyHandle()':
: undefined reference to `IceInternal::decRef(IceProxy::Ice::Object*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal6HandleIN3Ice12CommunicatorEEC1EPS2_+0x2d): In function `IceInternal::Handle<Ice::Communicator>::Handle(Ice::Communicator*)':
: undefined reference to `IceInternal::incRef(Ice::Communicator*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal6HandleIN3Ice12CommunicatorEED1Ev+0x17): In function `IceInternal::Handle<Ice::Communicator>::~Handle()':
: undefined reference to `IceInternal::decRef(Ice::Communicator*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal6HandleIN3Ice10PropertiesEEC1EPS2_+0x2d): In function `IceInternal::Handle<Ice::Properties>::Handle(Ice::Properties*)':
: undefined reference to `IceInternal::incRef(Ice::Properties*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal6HandleIN3Ice10PropertiesEED1Ev+0x17): In function `IceInternal::Handle<Ice::Properties>::~Handle()':
: undefined reference to `IceInternal::decRef(Ice::Properties*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal6HandleIN3Ice6LoggerEEC1EPS2_+0x2d): In function `IceInternal::Handle<Ice::Logger>::Handle(Ice::Logger*)':
: undefined reference to `IceInternal::incRef(Ice::Logger*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal6HandleIN3Ice6LoggerEED1Ev+0x17): In function `IceInternal::Handle<Ice::Logger>::~Handle()':
: undefined reference to `IceInternal::decRef(Ice::Logger*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal6HandleIN3Ice5StatsEEC1EPS2_+0x2d): In function `IceInternal::Handle<Ice::Stats>::Handle(Ice::Stats*)':
: undefined reference to `IceInternal::incRef(Ice::Stats*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal6HandleIN3Ice5StatsEED1Ev+0x17): In function `IceInternal::Handle<Ice::Stats>::~Handle()':
: undefined reference to `IceInternal::decRef(Ice::Stats*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal6HandleIN3Ice12CommunicatorEEaSERKS3_+0x23): In function `IceInternal::Handle<Ice::Communicator>::operator=(IceInternal::Handle<Ice::Communicator> const&)':
: undefined reference to `IceInternal::incRef(Ice::Communicator*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal6HandleIN3Ice12CommunicatorEEaSERKS3_+0x49): In function `IceInternal::Handle<Ice::Communicator>::operator=(IceInternal::Handle<Ice::Communicator> const&)':
: undefined reference to `IceInternal::decRef(Ice::Communicator*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal6HandleIN3Ice13ObjectAdapterEED1Ev+0x17): In function `IceInternal::Handle<Ice::ObjectAdapter>::~Handle()':
: undefined reference to `IceInternal::decRef(Ice::ObjectAdapter*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal6HandleIN3Ice6ObjectEEC1EPS2_+0x2d): In function `IceInternal::Handle<Ice::Object>::Handle(Ice::Object*)':
: undefined reference to `IceInternal::incRef(Ice::Object*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN11IceInternal6HandleIN3Ice6ObjectEED1Ev+0x17): In function `IceInternal::Handle<Ice::Object>::~Handle()':
: undefined reference to `IceInternal::decRef(Ice::Object*)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZNK7IceUtil10HandleBaseIN3Ice12CommunicatorEE24throwNullHandleExceptionEPKci+0x24): In function `IceUtil::HandleBase<Ice::Communicator>::throwNullHandleException(char const*, int) const':
: undefined reference to `IceUtil::NullHandleException::NullHandleException(char const*, int)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZNK7IceUtil10HandleBaseIN3Ice12CommunicatorEE24throwNullHandleExceptionEPKci+0x58): In function `IceUtil::HandleBase<Ice::Communicator>::throwNullHandleException(char const*, int) const':
: undefined reference to `typeinfo for IceUtil::NullHandleException'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN7IceUtil19NullHandleExceptionD1Ev+0xb): In function `IceUtil::NullHandleException::~NullHandleException()':
: undefined reference to `vtable for IceUtil::NullHandleException'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZN7IceUtil19NullHandleExceptionD1Ev+0x16): In function `IceUtil::NullHandleException::~NullHandleException()':
: undefined reference to `IceUtil::Exception::~Exception()'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZNK7IceUtil10HandleBaseIN3Ice13ObjectAdapterEE24throwNullHandleExceptionEPKci+0x24): In function `IceUtil::HandleBase<Ice::ObjectAdapter>::throwNullHandleException(char const*, int) const':
: undefined reference to `IceUtil::NullHandleException::NullHandleException(char const*, int)'
/tmp/ccoCrAz0.o(.gnu.linkonce.t._ZNK7IceUtil10HandleBaseIN3Ice13ObjectAdapterEE24throwNullHandleExceptionEPKci+0x58): In function `IceUtil::HandleBase<Ice::ObjectAdapter>::throwNullHandleException(char const*, int) const':
: undefined reference to `typeinfo for IceUtil::NullHandleException'
/tmp/ccoCrAz0.o(.gnu.linkonce.r._ZTV8PrinterI+0xc): undefined reference to `Demo::Printer::ice_clone() const'
/tmp/ccoCrAz0.o(.gnu.linkonce.r._ZTV8PrinterI+0x10): undefined reference to `Demo::Printer::ice_isA(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Ice::Current const&) const'
/tmp/ccoCrAz0.o(.gnu.linkonce.r._ZTV8PrinterI+0x14): undefined reference to `Demo::Printer::ice_ids(Ice::Current const&) const'
/tmp/ccoCrAz0.o(.gnu.linkonce.r._ZTV8PrinterI+0x18): undefined reference to `Demo::Printer::ice_id(Ice::Current const&) const'
/tmp/ccoCrAz0.o(.gnu.linkonce.r._ZTV8PrinterI+0x28): undefined reference to `Demo::Printer::__dispatch(IceInternal::Incoming&, Ice::Current const&)'
/tmp/ccoCrAz0.o(.gnu.linkonce.r._ZTV8PrinterI+0x2c): undefined reference to `Demo::Printer::__write(IceInternal::BasicStream*) const'
/tmp/ccoCrAz0.o(.gnu.linkonce.r._ZTV8PrinterI+0x30): undefined reference to `Demo::Printer::__read(IceInternal::BasicStream*, bool)'
/tmp/ccoCrAz0.o(.gnu.linkonce.r._ZTV8PrinterI+0x34): undefined reference to `Demo::Printer::__write(IceInternal::Handle<Ice::OutputStream> const&) const'
/tmp/ccoCrAz0.o(.gnu.linkonce.r._ZTV8PrinterI+0x38): undefined reference to `Demo::Printer::__read(IceInternal::Handle<Ice::InputStream> const&, bool)'