[omniORB] Date: Wed, 25 Mar 1998 10:11:19 -0500
Dietmar May
dcmay@object-workshops.com
Wed, 25 Mar 1998 15:15:57 +0000
This is a multi-part message in MIME format.
------=_NextPart_000_0001_01BD57D6.5F832510
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
I am having problems with omniORB 2.5 and "const" declarations.
This IDL code:
typedef unsigned long ulong;
module Dme
{
const ulong eEXEC_MODE_ALL = 7;
const ulong eEXEC_MODE_AUTO = 4;
const ulong eEXEC_MODE_PROG = 2;
const ulong eEXEC_MODE_MAN = 1;
};
generates this in the header:
static const CORBA::ULong eEXEC_MODE_ALL;
static const CORBA::ULong eEXEC_MODE_AUTO;
static const CORBA::ULong eEXEC_MODE_PROG;
static const CORBA::ULong eEXEC_MODE_MAN;
and this in the skeleton source file:
const CORBA::ULong Dme::eEXEC_MODE_ALL = 7;
const CORBA::ULong Dme::eEXEC_MODE_AUTO = 4;
const CORBA::ULong Dme::eEXEC_MODE_PROG = 2;
const CORBA::ULong Dme::eEXEC_MODE_MAN = 1;
Unfortunately, since the header file declares these as !!! static !!!,
zero'd value constants are being inserted into each source file! and
there is no way to resolve the global const definition. This means that
code which uses these constants does not, of course, do what is expected.
Suggestions? About where to look, where to patch the IDL generator?
Regards,
Dietmar May
Object Workshops, Inc.
------=_NextPart_000_0001_01BD57D6.5F832510
Content-Type: application/octet-stream;
name="Dietmar May (E-mail).vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="Dietmar May (E-mail).vcf"
BEGIN:VCARD
VERSION:2.1
N:May;Dietmar;;Mr.;
FN:Dietmar May (E-mail)
ORG:Object Workshops, Inc.;Engineering
TITLE:Software Architect
TEL;WORK;VOICE:(540) 223-1145 x124
TEL;HOME;VOICE:(540) 223-1172
TEL;WORK;FAX:(540) 223-1241
ADR;WORK;ENCODING=3DQUOTED-PRINTABLE:;;P.O. Box 597=3D0D=3D0ARoute 2 Box =
309H;Wytheville;VA;24382;USA
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:P.O. Box 597=3D0D=3D0ARoute 2 Box =
309H=3D0D=3D0AWytheville, VA 24382=3D0D=3D0AUSA
EMAIL;PREF;INTERNET:dcmay@object-workshops.com
REV:19980325T141414Z
END:VCARD
------=_NextPart_000_0001_01BD57D6.5F832510--