Home > Archive > PERL Modules > October 2005 > problem using swig to create perl module
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
problem using swig to create perl module
|
|
|
| I just downloaded swig and installed it on a solaris machine. I tried
to run one of the examples and got this error message
Can't load './example.so' for module example: ld.so.1: perl: fatal:
relocation error: file ./example.so: symbol _ZdlPv: referenced symbol
not found at
/tps/global/depot/perl-5.8.5/lib/5.8.5/sun4-solaris/DynaLoader.pm line
230.
at example.pm line 7
Compilation failed in require at runme.pl line 7.
BEGIN failed--compilation aborted at runme.pl line 7.
Any ideas how to solve this. Thanks in advance.
Joe
| |
| Sisyphus 2005-10-07, 3:55 am |
|
"GIJoe" <biold0@bayou.uh.edu> wrote in message
> I just downloaded swig and installed it on a solaris machine. I tried
> to run one of the examples and got this error message
>
> Can't load './example.so' for module example: ld.so.1: perl: fatal:
> relocation error: file ./example.so: symbol _ZdlPv: referenced symbol
> not found at
> /tps/global/depot/perl-5.8.5/lib/5.8.5/sun4-solaris/DynaLoader.pm line
> 230.
> at example.pm line 7
> Compilation failed in require at runme.pl line 7.
> BEGIN failed--compilation aborted at runme.pl line 7.
>
> Any ideas how to solve this. Thanks in advance.
We don't see many swig questions here - and I get the impression that it's
not used much by perl folks, these days. Most of us take the more usual XS
approach, or use inline::C - which would be *my* recommendation on how to
solve the problem.
If you specifically want to use swig then perhaps your best bet is with the
swig mailing lists:
http://www.swig.org/mail.html
There could, of course, be someone lurking about here who *does* have the
knowledge to help you .... so stay tuned, just in case.
Cheers,
Rob
| |
|
| Thanks, Rob. I'll give that site a try. Swig is one of the approaches
recommended by the book Advanced Perl Programming. The example given
makes it look very straight forward. I guess it's never easy as it
seems. I do have another question, does XS work with C++ code? The book
says it doesn't, but maybe it is outdated.
Joe
| |
| Sisyphus 2005-10-07, 6:56 pm |
|
"Tassilo v. Parseval" <tassilo.von.parseval@rwth-aachen.de> wrote in message
>
> XS works very well with C++ and provides some convenient ways to map
> C++-methods to Perl-methods. See 'perldoc perlxs', "Using XS With C++".
>
There's Inline::CPP as well, which op might also find useful.
Cheers,
Rob
|
|
|
|
|