"Patrick Kuijvenhoven" <[EMAIL PROTECTED]> writes:
> i need some help with compiling XML::Xerces on FreeBSD 4.7. Relevant
> information is shown below:
It's been quite some time since someone reported on BSD, and we've
automated the build system a lot since then, so it doesn't surprise me
if there's some glitches.
We'll probably need to get the right Xerces flags for OS and compiler.
> Found CXX = c++
This is probably an issue. Right now I look for g++ to set the
-DXML_GCC flag. Perhaps I should actually run 'c++ --version' and
check the output.
> # c++ -v
> Using builtin specs.
> gcc version 2.95.4 20020320 [FreeBSD]
Is your Xerces-C compiled with 2.95 as well?
> In file included from PerlContentCallbackHandler.cpp:2:
> PerlContentCallbackHandler.hpp:10: syntax error before `:'
> gmake[1]: *** [PerlContentCallbackHandler.o] Error 1
> gmake[1]: Leaving directory `/usr/local/src/XML-Xerces-2.3.0-2/Handler'
> gmake: *** [blib/arch/auto/Handler/Handler.a] Error 2
I'm just guessing, but its probably not understanding the namespace
macro:
#include "PerlCallbackHandler.hpp"
#include "xercesc/sax2/ContentHandler.hpp"
#include "xercesc/util/XMLString.hpp"
XERCES_CPP_NAMESPACE_USE
class PerlContentCallbackHandler : public ContentHandler
// , public PerlCallbackHandler
{
XERCES_CPP_NAMESPACE_USE is defined in the OS/compiler specific bits
of Xerces. Try commenting this out just to see if the compile gets any
further.
> I allready tried to compile the source with g++33 (gcc version 3.3.1
> 20030707 (prerelease) [FreeBSD]), but it still doesn't compile.
Where the errors different?
Cheers,
jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]