Bug with Any and struct ?
Yvan Peter
Yvan.Peter@cnet.francetelecom.fr
Mon, 12 Jan 1998 09:09:51 +0100
--------------D04BD2E4BB7A53D96EA753D4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I have a problem when compiling skeleton when there is a struct with
an any in the idl.
Just like in this modified eg3 example:
struct foo {
any value;
} ;
interface Echo {
string echoString(in string mesg);
};
Compilation trace:
/usr/local/snapshot_971224//stub/echoSK.cc: In method `unsigned int
foo::NP_alignedSize(unsigned int) const':
/usr/local/snapshot_971224//stub/echoSK.cc:11: no member function
`CORBA::Any::NP_alignedSize(long unsigned int)' defined
/usr/local/snapshot_971224//stub/echoSK.cc: In method `void
foo::operator >>=(class NetBufferedStream &) const':
/usr/local/snapshot_971224//stub/echoSK.cc:18: no matching function for
call to `CORBA::Any::operator >>= (NetBufferedStream) const'
/usr/local/snapshot_971224//include/omniORB2/CORBA.h:378: candidates
are: CORBA::Any::operator >>=(unsigned char &) const
/usr/local/snapshot_971224//include/omniORB2/CORBA.h:369:
CORBA::Any::operator >>=(CORBA::Any::to_octet) const
/usr/local/snapshot_971224//include/omniORB2/CORBA.h:368:
CORBA::Any::operator >>=(CORBA::Any::to_char) const
/usr/local/snapshot_971224//include/omniORB2/CORBA.h:367:
CORBA::Any::operator >>=(CORBA::Any::to_boolean) const
/usr/local/snapshot_971224//include/omniORB2/CORBA.h:331:
CORBA::Any::operator >>=(char *&) const
... and so on.
Hope this can easily be fixed.
Cheers,
Yvan
--
Yvan PETER France Telecom/CNET
42, rue des Coutures - BP6243 F-14066 CAEN Cedex
phone (+33) 2.31.75.91.39 / fax (+33) 2.31.73.56.26
email: Yvan.Peter@cnet.francetelecom.fr
--------------D04BD2E4BB7A53D96EA753D4
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<HTML>
<P> I have a problem when compiling skeleton when there is a struct
with an any in the idl.
<P> Just like in this modified eg3 example:
<BR>
<BR>struct foo {
<BR> any value;
<BR>} ;
<P>interface Echo {
<BR> string echoString(in string mesg);
<BR>};
<P> Compilation trace:
<P>/usr/local/snapshot_971224//stub/echoSK.cc: In method `unsigned int
foo::NP_alignedSize(unsigned int) const':
<BR>/usr/local/snapshot_971224//stub/echoSK.cc:11: no member function `CORBA::Any::NP_alignedSize(long
unsigned int)' defined
<BR>/usr/local/snapshot_971224//stub/echoSK.cc: In method `void foo::operator
>>=(class NetBufferedStream &) const':
<BR>/usr/local/snapshot_971224//stub/echoSK.cc:18: no matching function
for call to `CORBA::Any::operator >>= (NetBufferedStream) const'
<BR>/usr/local/snapshot_971224//include/omniORB2/CORBA.h:378: candidates
are: CORBA::Any::operator >>=(unsigned char &) const
<BR>/usr/local/snapshot_971224//include/omniORB2/CORBA.h:369:
CORBA::Any::operator >>=(CORBA::Any::to_octet) const
<BR>/usr/local/snapshot_971224//include/omniORB2/CORBA.h:368:
CORBA::Any::operator >>=(CORBA::Any::to_char) const
<BR>/usr/local/snapshot_971224//include/omniORB2/CORBA.h:367:
CORBA::Any::operator >>=(CORBA::Any::to_boolean) const
<BR>/usr/local/snapshot_971224//include/omniORB2/CORBA.h:331:
CORBA::Any::operator >>=(char *&) const
<P> ... and so on.
<P> Hope this can easily be fixed.
<P> Cheers,
<P> Yvan
<PRE>--
Yvan PETER France Telecom/CNET
42, rue des Coutures - BP6243 F-14066 CAEN Cedex
phone (+33) 2.31.75.91.39 / fax (+33) 2.31.73.56.26
email: Yvan.Peter@cnet.francetelecom.fr</PRE>
</HTML>
--------------D04BD2E4BB7A53D96EA753D4--