"Patrick Kuijvenhoven" <[EMAIL PROTECTED]> writes:

> I hope i do not annoy this list, but here is some more compiling
> output:

No problems.

> su-2.05b# gmake (I am using gmake here because the 'make -C Handler
> static' fails ('make: illegal option -- C')).

It looks like BSD's default make is not GNU make...

> gmake[1]: Entering directory `/usr/local/src/XML-Xerces-2.3.0-3/Handler'
> c++ -c  -I. -IHandler -I/usr/local/include/ -pipe -DNONEXPORTABLE_CRYPT -w 
> -DXML_USE_LIBICONV -I/usr/local/include -DXML_USE_INMEM_MESSAGELOADER -D_THREAD_SAFE 
> -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET -D_REENTRANT -O   -DVERSION=\"\" 
> -DXS_VERSION=\"\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.1/mach/CORE"   
> PerlCallbackHandler.cpp

This is good - the first handler is compiling properly - this class
does not inherit from anything.

> c++ -c  -I. -IHandler -I/usr/local/include/ -pipe -DNONEXPORTABLE_CRYPT -w 
> -DXML_USE_LIBICONV -I/usr/local/include -DXML_USE_INMEM_MESSAGELOADER -D_THREAD_SAFE 
> -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET -D_REENTRANT -O   -DVERSION=\"\" 
> -DXS_VERSION=\"\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.1/mach/CORE"   
> PerlContentCallbackHandler.cpp
> In file included from PerlContentCallbackHandler.cpp:2:
> PerlContentCallbackHandler.hpp:10: syntax error before `:'

But this one is dying on the class definition line - this is a class
which inherits from PerlCallbackHandler, and it seems not to like the
':' in the inheritance line.

> Unfortunatly, with adding -DXML_GCC (manually) the same error
> occurs.

Yes, this really shouldn't affect things. That was a misleading
thought on my part.

> Both Xerces-c as Xerces-p are compiled with the same
> version. Xerces-c uses 'cc', Xerces-p uses 'c++'. 

Ok. Which version of Xerces-C are you using (needs to be 2.3.0 to work
with this version of Xerces-P).

> I commented out the macro (as you told me to), but still the same
> error occurs. g++33 seems to be more verbose (and seems to parse the
> c++ even further though an error occured). 

> In file included from PerlDocumentCallbackHandler.cpp:2:
> PerlDocumentCallbackHandler.hpp:10: error: syntax error before `:'
> token

Still dying right on the inheritance line.

I hope that someone else can recognize what's happening, because I've
run out of ideas. It seems very strange. I would simply try removing
bits of the file until it compiles - so instead of:

class PerlDocumentCallbackHandler : public DocumentHandler
//                                , public  PerlCallbackHandler 


Try compiling with:
class PerlDocumentCallbackHandler // : public DocumentHandler
//                                , public  PerlCallbackHandler 

So that both super classes are commented out...

Sorry I can't be more helpful,
jas.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to