[omniORB] Patch 39 breaks Visual C++ 5.0 - a fix
David Riddoch
djr@uk.research.att.com
Tue, 16 Feb 1999 09:21:13 +0000 (GMT)
Hi,
A couple of people have let us know about a problem MSVC has compiling the
library after applying patch 39.
(http://www.uk.research.att.com/omniORB/bugs/39.html)
See below ...
David
On Tue, 16 Feb 1999, Roy Ward wrote:
> Hi,
>
> I've found that when applying the patches to omniORB 2.7.1,
> the file src/lib/omniORB2/orbcore/corbaString.cc breaks with
> an internal compiler error using Visual C++ 5.0 on Windows
> NT 4.0.
>
> This is a bug in Visual C++, and can be worked around by
> replacing line 67 of src/lib/omniORB2/orbcore/corbaString.cc
> which contains:
>
> #define ALLOC_BYTES(len) (new char[(int)(len)])
>
> by:
>
> #define ALLOC_BYTES(len) new char[(int)(len)]
>
> (i.e. just remove the brackets).
>
> This is a problem with Visual C++ rather than omniORB,
> but I'm pretty sure that the change above won't break
> anything else, so if this is a repeatable problem (i.e.
> not just me), it might be worth incorporating into the
> next release, or providing as a patch (patch of a patch ...)
>
> Hope this helps.
>
> Cheers,
> Roy Ward.
>
>