You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Stephen White <sw...@decisionsoft.com> on 2005/08/30 16:31:13 UTC

build problem under GCC 3.2 (Red Hat Linux 8.0 3.2-7)

The version of GCC 3.2 shipped with RedHat 8.0 (yeah, rather old now) 
fails to build DOMImplementationListImpl.cpp.  It is a while since I've 
worked with C++ and I can't remember if this is something that is 
trivial to fix, or not.

Compiling xercesc/dom/impl/DOMImplementationListImpl.cpp
xercesc/util/RefVectorOf.c: In destructor `void 
   xercesc_3_0::RefVectorOf<TElem>::RefVectorOf() [with TElem = 
   xercesc_3_0::DOMImplementation]':
xercesc/dom/impl/DOMImplementationListImpl.cpp:33:   instantiated from 
here
xercesc/util/RefVectorOf.c:47: invalid use of undefined type `struct 
   xercesc_3_0::DOMImplementation'
xercesc/dom/DOMImplementationList.hpp:29: forward declaration of `struct 
   xercesc_3_0::DOMImplementation'
xercesc/util/BaseRefVectorOf.c: In member function `void 
   xercesc_3_0::BaseRefVectorOf<TElem>::setElementAt(TElem*, unsigned 
int) 
   [with TElem = xercesc_3_0::DOMImplementation]':
xercesc/util/BaseRefVectorOf.c:57:   instantiated from here
xercesc/util/BaseRefVectorOf.c:70: invalid use of undefined type `struct 
   xercesc_3_0::DOMImplementation'
xercesc/dom/DOMImplementationList.hpp:29: forward declaration of `struct 
   xercesc_3_0::DOMImplementation'
xercesc/util/BaseRefVectorOf.c: In member function `void 
   xercesc_3_0::BaseRefVectorOf<TElem>::removeAllElements() [with TElem 
= 
   xercesc_3_0::DOMImplementation]':
xercesc/util/BaseRefVectorOf.c:57:   instantiated from here
xercesc/util/BaseRefVectorOf.c:132: invalid use of undefined type 
`struct 
   xercesc_3_0::DOMImplementation'
xercesc/dom/DOMImplementationList.hpp:29: forward declaration of `struct 
   xercesc_3_0::DOMImplementation'
xercesc/util/BaseRefVectorOf.c: In member function `void 
   xercesc_3_0::BaseRefVectorOf<TElem>::removeElementAt(unsigned int) 
[with 
   TElem = xercesc_3_0::DOMImplementation]':
xercesc/util/BaseRefVectorOf.c:57:   instantiated from here
xercesc/util/BaseRefVectorOf.c:147: invalid use of undefined type 
`struct 
   xercesc_3_0::DOMImplementation'
xercesc/dom/DOMImplementationList.hpp:29: forward declaration of `struct 
   xercesc_3_0::DOMImplementation'
xercesc/util/BaseRefVectorOf.c: In member function `void 
   xercesc_3_0::BaseRefVectorOf<TElem>::removeLastElement() [with TElem 
= 
   xercesc_3_0::DOMImplementation]':
xercesc/util/BaseRefVectorOf.c:57:   instantiated from here
xercesc/util/BaseRefVectorOf.c:175: invalid use of undefined type 
`struct 
   xercesc_3_0::DOMImplementation'
xercesc/dom/DOMImplementationList.hpp:29: forward declaration of `struct 
   xercesc_3_0::DOMImplementation'
xercesc/util/BaseRefVectorOf.c: In member function `void 
   xercesc_3_0::BaseRefVectorOf<TElem>::cleanup() [with TElem = 
   xercesc_3_0::DOMImplementation]':
xercesc/util/BaseRefVectorOf.c:57:   instantiated from here
xercesc/util/BaseRefVectorOf.c:200: invalid use of undefined type 
`struct 
   xercesc_3_0::DOMImplementation'
xercesc/dom/DOMImplementationList.hpp:29: forward declaration of `struct 
   xercesc_3_0::DOMImplementation'
make[2]: *** [xercesc/dom/impl/DOMImplementationListImpl.lo] Error 1
make[2]: Leaving directory `/tmp/trunk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/trunk'
make: *** [all] Error 2
[swhite@ob trunk]$ 

-- 
Stephen White                               +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: build problem under GCC 3.2 (Red Hat Linux 8.0 3.2-7)

Posted by Stephen White <sw...@decisionsoft.com>.
---- Original Message ----
> From Alberto Massari <am...@datadirect.com>
> Date: Tuesday, 30 Aug 2005, 16:02
>
> can you try adding an #include <xercesc/dom/DOMImplementation.hpp> in 
> DOMImplementationListImpl.cpp?

That fixes the issue for me.

Thanks,

-- 
Stephen White                               +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: build problem under GCC 3.2 (Red Hat Linux 8.0 3.2-7)

Posted by Alberto Massari <am...@datadirect.com>.
Hi Stephen,
can you try adding an #include <xercesc/dom/DOMImplementation.hpp> in 
DOMImplementationListImpl.cpp?

Thanks,
Alberto

At 15.31 30/08/2005 +0100, Stephen White wrote:
>The version of GCC 3.2 shipped with RedHat 8.0 (yeah, rather old now)
>fails to build DOMImplementationListImpl.cpp.  It is a while since I've
>worked with C++ and I can't remember if this is something that is
>trivial to fix, or not.
>
>Compiling xercesc/dom/impl/DOMImplementationListImpl.cpp
>xercesc/util/RefVectorOf.c: In destructor `void
>    xercesc_3_0::RefVectorOf<TElem>::RefVectorOf() [with TElem =
>    xercesc_3_0::DOMImplementation]':
>xercesc/dom/impl/DOMImplementationListImpl.cpp:33:   instantiated from
>here
>xercesc/util/RefVectorOf.c:47: invalid use of undefined type `struct
>    xercesc_3_0::DOMImplementation'
>xercesc/dom/DOMImplementationList.hpp:29: forward declaration of `struct
>    xercesc_3_0::DOMImplementation'
>xercesc/util/BaseRefVectorOf.c: In member function `void
>    xercesc_3_0::BaseRefVectorOf<TElem>::setElementAt(TElem*, unsigned
>int)
>    [with TElem = xercesc_3_0::DOMImplementation]':
>xercesc/util/BaseRefVectorOf.c:57:   instantiated from here
>xercesc/util/BaseRefVectorOf.c:70: invalid use of undefined type `struct
>    xercesc_3_0::DOMImplementation'
>xercesc/dom/DOMImplementationList.hpp:29: forward declaration of `struct
>    xercesc_3_0::DOMImplementation'
>xercesc/util/BaseRefVectorOf.c: In member function `void
>    xercesc_3_0::BaseRefVectorOf<TElem>::removeAllElements() [with TElem
>=
>    xercesc_3_0::DOMImplementation]':
>xercesc/util/BaseRefVectorOf.c:57:   instantiated from here
>xercesc/util/BaseRefVectorOf.c:132: invalid use of undefined type
>`struct
>    xercesc_3_0::DOMImplementation'
>xercesc/dom/DOMImplementationList.hpp:29: forward declaration of `struct
>    xercesc_3_0::DOMImplementation'
>xercesc/util/BaseRefVectorOf.c: In member function `void
>    xercesc_3_0::BaseRefVectorOf<TElem>::removeElementAt(unsigned int)
>[with
>    TElem = xercesc_3_0::DOMImplementation]':
>xercesc/util/BaseRefVectorOf.c:57:   instantiated from here
>xercesc/util/BaseRefVectorOf.c:147: invalid use of undefined type
>`struct
>    xercesc_3_0::DOMImplementation'
>xercesc/dom/DOMImplementationList.hpp:29: forward declaration of `struct
>    xercesc_3_0::DOMImplementation'
>xercesc/util/BaseRefVectorOf.c: In member function `void
>    xercesc_3_0::BaseRefVectorOf<TElem>::removeLastElement() [with TElem
>=
>    xercesc_3_0::DOMImplementation]':
>xercesc/util/BaseRefVectorOf.c:57:   instantiated from here
>xercesc/util/BaseRefVectorOf.c:175: invalid use of undefined type
>`struct
>    xercesc_3_0::DOMImplementation'
>xercesc/dom/DOMImplementationList.hpp:29: forward declaration of `struct
>    xercesc_3_0::DOMImplementation'
>xercesc/util/BaseRefVectorOf.c: In member function `void
>    xercesc_3_0::BaseRefVectorOf<TElem>::cleanup() [with TElem =
>    xercesc_3_0::DOMImplementation]':
>xercesc/util/BaseRefVectorOf.c:57:   instantiated from here
>xercesc/util/BaseRefVectorOf.c:200: invalid use of undefined type
>`struct
>    xercesc_3_0::DOMImplementation'
>xercesc/dom/DOMImplementationList.hpp:29: forward declaration of `struct
>    xercesc_3_0::DOMImplementation'
>make[2]: *** [xercesc/dom/impl/DOMImplementationListImpl.lo] Error 1
>make[2]: Leaving directory `/tmp/trunk/src'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/tmp/trunk'
>make: *** [all] Error 2
>[swhite@ob trunk]$
>
>--
>Stephen White                               +44-1865-203192
>DecisionSoft Limited                        http://www.decisionsoft.com
>XML Development and Services
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
>For additional commands, e-mail: c-dev-help@xerces.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org