"fleur diana dragan" <[EMAIL PROTECTED]> writes:

> Hi all, 
> 
> I'm not sure this is the most correct place to ask this question, but I
> can't think where else to ask it.

You could ask on [EMAIL PROTECTED], which is the xerces-perl
mailing list. But I'm the maintainer, so you found me anyway ;-)

> If I have a SWIG'ed C++ package wrapped in Perl, does my perl binary
> have to have been compiled with a C++ compiler?

No, I've never done that, and I've been able to load C++ libraries
into perl at run time.

> I'm trying to install Xerces Perl and keep getting :
> 
> can't load 'blib/arch/auto/XML/Xerces/Xerces.so' for module XML::Xerces:
> blib/arch/auto/XML/Xerces/Xerces.so: undefined symbol: __rethrow at
> /usr/lib/perl5/5.6.0/i386-linux/DynaLoader.pm line 200.
>
> when I do 'make test'.  Even when I explicitly link in the stdc++ lib and
> make sure my LD_LIBRARY_PATH is set correctly.
> 
> Any advice or bits of wisdom greatly appreciated.

Sorry, no words of wisdow about that particular symbol. Here's the
standard firing line:

What architecture (uname -a)? I noticed that it's x86, and I'm
   assuming linux, so redhat or debian? 

What perl (perl -V)

What C++ compiler (say, g++ -v)

Did you build Xerces-C from scratch or are you using the binaries from
apache.org? If you've got a redhat7 system, I've found that you need
to recompile perl to get it to work properly. I don't know why.

On redhat6.2 I didn't have any trouble getting it to work using the
default perl.

Have you tried any of the sample Xerces-C programs like DOMCount to
see if they work, or do they give dynamic loading errors? If they work
then it's a perl-specific issue.

jas.

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

Reply via email to