Harald Barrera Dubois wrote:
> Hi all.
>
> My version of the std c++ library is "libstdc++-2.96-69" (in Redhat linux: rpm
> -qa | grep std). The examples distributed with the xerces library runs without
> problems, but when I compile the source code of any example (for example
> DOMCount), I receive "segmentation fault" error.
> I suspect about the std c++ library because is there where the segmentation
> fault occurs in createReader member of ReaderMgr class.
> Which version are you using?
> Is this the correct version?
> Someone is using the same version of stdlib?
Hi,
I think we had the same problem. We use redhat 7.0 with libstdc++--2.96-69 and
gcc-2.96-69, the solution to our
seg. fault problems was to recompile the whole xerces-library. So, I would
propose to download the xerces sources and
compile them with your version of gcc. After that try to compile the examples as
well if you want to use them.
The reason should be that if you try to compile the samples on your maschine they
will be linked to the new libstc++ but
the xerces library itself is linked to the old version. This should cause some
version confilicts which you can only avoid if both, the library and the
programm(e.g. the sample) uses the same libstdc++. The other possibility could be
to downgrade your gcc. But afaIk I think this is not the easiest way.
A pretty good documentation on how to compile the libary comes with the sources
so this shouldn't be a real problem.
cu
stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]