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

error about IdentityObjectDescDict.h??

I have downloaded today and compiled it in VC7.1(the OS is Windows server 2003),but an compiling error rised.It say that #if/#endif pair is not match in IdentityObjectDescDict.h in $ICE/src/IcePack. I open it and read this:
// **********************************************************************
// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved.
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
// **********************************************************************

// Ice version 1.5.1

// Freeze types in this file:
// name="IcePack::IdentityObjectDescDict", key="Ice::Identity", value="IcePack::ObjectDescription"

#ifndef __IdentityObjectDescDict_h__
#define __IdentityObjectDescDict_h__

#include <Freeze/Map.h>
#include <Ice/Identity.h>
#include <IcePack/Internal.h>

# if ICE_INT_VERSION != 10501
# error Ice version mismatch!
# endif

@Then I downloaded the file three time but every time the file IdentityObjectDescDict.h is same. I open IdentityObjectDescDict.h in ICE 1.4.0 and it's content is different with the one in ICE1.5.1.And I download but there is no the file IdentityObjectDescDict.h:( .

Can anyone pls tell me the solution?


  • ps. the compiling error rised when compiling IcePackRegistry project
  • I copy the files,IdentityObjectDescDict.h and IdentityObjectDescDict.cpp from ICE 1.4.0 to ICE1.5.1,change the line :

    # if ICE_INT_VERSION != 10400


    # if ICE_INT_VERSION != 10501

    and change "ObjectDescription" to :ObjectDescriptor",the compile is OK.

    I don't know if it is the ICE team's real intention.
  • benoit
    benoit Rennes, France
    Sorry about that, Wody already reported this problem but somehow we forgot to fix it :( ( I've posted an updated IcePackRegistry.dsp here


  • Thanks Benoit.

    I found IdentityObjectDescDict is generated from $ICE/src/IcePack/ And is it because the files is generated differently between ICE1.4.0 and ICE1.5.1?
  • benoit
    benoit Rennes, France
    Correct, the generation of the IdentityObjectDescDict dictionary changed between 1.4.0 and 1.5.x.

  • Thanks again!

    I update the patch and the compile passed.