[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gcc multiple inheritance problem
From: |
Phil Adams |
Subject: |
gcc multiple inheritance problem |
Date: |
Wed, 3 Apr 2002 12:40:54 -0600 |
PLEASE HELP!
I'm developing code on a RH 6.2 system with gcc version "egcs-2.91.66".
I've run across a fairly bizarre error message which I think is related to
multiple inheritance, but I'm not quite sure. The code that I'm trying
to compile is actually generated code. We are trying to implement in C++
certain common Java classes for use in WebSphere in order to allow C++
client programs to access EJB's. We use Java's rmic utility to generate
the .idl files corresponding to the Java classes, then we use our own
(WebSphere) IDL compiler to generate header files which define the C++
classes.
The generated code yields a very complicated inheritance graph which
appears to be tripping gcc. I won't bother to draw out the inheritance
graph (probably couldn't even if I wanted to), but I'll include the error
message to see if this rings a bell with anyone.
When I try to compile a source file which includes all the headers that
make up this inheritance graph, I get this error:
In file included from
/blddir/ebroker/p0213.03/src/orbs.vtlib/lib/sql_Date.ih:59,
from
/blddir/ebroker/p0213.03/src/orbs.vtlib/lib/sql_Date_I.cpp:49:
/blddir/ebroker/p0213.03/include/java/sql/Date.hh:364: duplicate member
`::OBV_java::sql::Date::_vb.Date'
/blddir/ebroker/p0213.03/src/orbs.vtlib/lib/sql_Date_I.cpp: In method
`java_sql_Date_Impl::java_sql_Date_Impl()':
/blddir/ebroker/p0213.03/src/orbs.vtlib/lib/sql_Date_I.cpp:55: confused by
earlier errors, bailing out
So it is complaining about some sort of duplicate member called "_vb.Date"
or some such thing, but in my entire set of headers, I do not
have anything named "_vb". I'm wondering if this identifier listed in the
error message is some sort of internal notation cooked up by the gcc
developers. Can anyone hazard a guess as to what it means? If I could
figure out exactly what gcc is telling me, then I would at least have a
chance of fixing it.
I should point out that the exact same code builds fine on WindowsNT/2000,
AIX, Solaris, and HP-UX. Only gcc complains about it.
Any help would be GREATLY appreciated.
Thanks
Phil Adams
WebSphere Development
IBM Austin, TX
phil_adams@us.ibm.com
(512) 838-6702 (tie 678)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gcc multiple inheritance problem,
Phil Adams <=