[omniORB] Date: Wed, 25 Mar 1998 10:11:19 -0500

Fredrik Jonsson fredrik.jonsson@sea.ericsson.se
Wed, 25 Mar 1998 18:52:41 +0100


On Wednesday, March 25, 1998 4:16 PM, dcmay@object-workshops.com 
[SMTP:dcmay@object-workshops.com] wrote:
> I am having problems with omniORB 2.5 and "const" declarations.
>
> 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?

Which compiler are you using? Static const members can be
initialized during declaration in the header, but, if not there has
to be an initialization statement in one source file.

My best bet, get a patch for your compiler :)

--!