[omniORB] Error while compiling snapshot 20010823 of omniORB4
Christof Meerwald
cmeerw@web.de
Thu, 23 Aug 2001 13:28:13 +0200
On Thu, 23 Aug 2001 11:49:33 +0100, Duncan Grisby wrote:
> On Thursday 23 August, =?iso-8859-1?Q?Fr=E9d=E9ric_Bouvier?= wrote:
> [...]
>> ..\omniORB4/bootstrapDynSK.cc(122) : error C2440: '=' : cannot convert from
>> 'void (__cdecl *)(const struct omni::tcObjrefDesc *,class CORBA::Object *)'
>> to 'void (__cdecl *)(struct omni::tcObjrefDesc *,class CORBA::Object *)'
>> This conversion requires a reinterpret_cast, a C-style cast or
>> function-style cast
> Anyway, it's fixed now in CVS. The fix is just:
I had to also change _0RL_tcParser_objref_setObjectPtr to make it compile
with gcc 3.0.1:
Index: include/omniORB4/tcDescriptor.h
===================================================================
RCS file: /cvsroot/omni/include/omniORB4/Attic/tcDescriptor.h,v
retrieving revision 1.2.2.7
diff -u -r1.2.2.7 tcDescriptor.h
--- tcDescriptor.h 2001/08/22 13:29:45 1.2.2.7
+++ tcDescriptor.h 2001/08/23 11:12:43
@@ -456,7 +456,7 @@
///////////////////
extern void
-_0RL_tcParser_objref_setObjectPtr(tcObjrefDesc* desc, CORBA::Object_ptr ptr);
+_0RL_tcParser_objref_setObjectPtr(const tcObjrefDesc* desc, CORBA::Object_ptr ptr);
extern CORBA::Object_ptr
_0RL_tcParser_objref_getObjectPtr(const tcObjrefDesc* desc);
Index: src/lib/omniORB/dynamic/tcParser.cc
===================================================================
RCS file: /cvsroot/omni/src/lib/omniORB/dynamic/Attic/tcParser.cc,v
retrieving revision 1.12.2.10
diff -u -r1.12.2.10 tcParser.cc
--- tcParser.cc 2001/08/22 13:29:47 1.12.2.10
+++ tcParser.cc 2001/08/23 11:12:45
@@ -1310,7 +1310,7 @@
//////////////////////////////////////////////////////////////////////
void
-_0RL_tcParser_objref_setObjectPtr(tcObjrefDesc* desc, CORBA::Object_ptr ptr)
+_0RL_tcParser_objref_setObjectPtr(const tcObjrefDesc* desc, CORBA::Object_ptr ptr)
{
CORBA::Object_ptr* pp = (CORBA::Object_ptr*)desc->opq_objref;
if (desc->opq_release && !CORBA::is_nil(*pp)) {
bye, Christof
--
http://cmeerw.cjb.net Jabber: cmeerw@jabber.at
mailto cmeerw at web.de ICQ: 93773535, Yahoo!: cmeerw