[omniORB] OMNIIDL2: error in look up of symbol: TypeCode

Mikhail Soukhanov mik@astra.relline.ru
Mon, 05 Apr 1999 13:10:37 +0400


Hello!

I was trying to compile the standard IDL definition file published by
the OpenGIS Consortium as a part of its CORBA specification
<http://www.opengis.org/public/sfr1/sfcorba_rev_1_0.pdf> and got the
following error:

> omniidl2 -a ogis.idl
OMNIIDL2.EXE: "ogis.idl", line 26: error in look up of symbol: TypeCode
OMNIIDL2.EXE: ogis.idl: found 1 error

The relevant place in the IDL source is:

struct PropertyDef {
    Istring name;
    TypeCode type;	<<< line 26
    boolean required;
};

The error was gone and the compilation succeeded after I added the
"CORBA::" modifier to "TypeCode":

struct PropertyDef {
    Istring name;
    CORBA::TypeCode type;	<<<
    boolean required;
};

I do not think that this is the correct behaviour of omniidl2. Would
somebody comment on it?

My configuration is:
omniORB version: 2.7.1
OS version: Win95 OSR2
Compiler: Borland C++Builder 3.0

Best regards,
		Mikhail
-- 
Mikhail Soukhanov <mailto:mik@astra.relline.ru.>

Laboratory of Geoinformatics, VNIIgeosystem
Warszawskoje chaussee 8, Moscow M-105, 113105 Russia
Tel.: +7(095) 954-00-31, fax.: +7(095) 958-35-22
W.W.W.: <http://astra.relline.ru./>