Bug or feature?

John Connett jrc@art.co.uk
Thu, 05 Jun 1997 15:38:07 +0100


The following IDL file generates a skeleton file which gcc is unwilling
to compile ...

    typedef float RtFloat;
    typedef RtFloat RtColor[3];
    typedef sequence<RtColor> RtColorSeq;

    interface Ri {
      void Dummy(in RtColorSeq colors);
    };

gcc -c  -fhandle-exceptions -Wall -Wno-unused -I. -D__OMNIORB2__
-I../../../include -D_REENTRANT -D__linux__ -D__i86__ -D__OSVERSION__=2
-o RiSK.o RiSK.cc
../../../include/omniORB2/bufferedStream.h: In method `void
_CORBA_Sequence<float[3]>::operator <<=(class MemBufferedStream &)':
In file included from RiSK.cc:1:
../../../include/omniORB2/bufferedStream.h:609: bad argument 1 for
function `void operator <<=(unsigned char &, class NetBufferedStream &)'
(type was float[3])
...

Is the problem with my attempt to write IDL?

Is there a work around?
--
John Connett (jrc@art.co.uk)