Home Help Center

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 *)" ([email protected]@@[email protected]@[email protected])

Test2 error LNK2019: unresolved external symbol "void __cdecl IceInternal::incRef(class IceProxy::Printer *)" ([email protected]@@[email protected]@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> &)" ([email protected]@@[email protected]@[email protected]@[email protected]@Z)

The Compiler is:

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

Comments

  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hello,

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

    Cheers,
    Bernard
  • wanmingwanming Member
    Yes!

    Thank you!
Sign In or Register to comment.