ZeroC

Archived

This forum has been archived. Please start a new discussion on GitHub.

reference count problem

I build the examples on PDF document chapter 3.3
The Server has successful but the client has failed

Compiler error:

Test2 error LNK2019: unresolved external symbol "void __cdecl IceInternal::decRef(class IceProxy::Printer *)" (?decRef@IceInternal@@IceInternal@@QAE@XZ)

Test2 error LNK2019: unresolved external symbol "void __cdecl IceInternal::incRef(class IceProxy::Printer *)" (?incRef@IceInternal@@IceInternal@@Z)

Test2 error LNK2019: unresolved external symbol "void __cdecl IceInternal::checkedCast(class IceInternal::ProxyHandle<class IceProxy::Ice::Object> const &,class IceInternal::ProxyHandle<class IceProxy::Printer> &)" (?checkedCast@IceInternal@@1@@IceInternal@@1@@Z)

The Compiler is:

VC7.1(default STL)
/GR
MultiThread Dll
Ice.lib IceUtil.lib

Comments

  • bernard
    bernard Jupiter, FL
    Hello,

    It looks like you forgot to link with the generated proxy code (Printer.obj).

    Cheers,
    Bernard
  • wanming
    wanming
    Yes!

    Thank you!