Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Dynaloader/XS: sharing C symbols across shared objects

by creamygoodness (Curate)
on Jun 10, 2008 at 00:41 UTC ( #691130=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Hello;
    use Inline C => <<'END_C';
    ...
    END_C
    
    1;
    
  2. or download this
    use strict;
    use warnings;
    ...
    END_C
    
    say_goodbye();
    
  3. or download this
    /Users/marvin/perltest/ $ perl hello_goodbye.pl 
    Greetings, earthlings!
    Prepare to die!
    /Users/marvin/perltest/ $
    
  4. or download this
    marvin@linlin:~/perltest$ /usr/local/debugperl/bin/perl5.10.0 hello_go
    +odbye.pl 
    /usr/local/debugperl/bin/perl5.10.0: symbol lookup error:
    /home/marvin/perltest/_Inline/lib/auto/hello_goodbye_pl_f0b6/hello_goo
    +dbye_pl_f0b6.so:
    undefined symbol: say_hello
    marvin@linlin:~/perltest$
    
  5. or download this
    $ perl hello_goodbye.pl 
    /libexec/ld-elf.so.1: /usr/home/creamyg/perltest/_Inline/lib/auto/hell
    +o_goodbye_pl_f0b6/hello_goodbye_pl_f0b6.so: Undefined symbol "say_hel
    +lo"
    $
    
  6. or download this
    Index: lib/Lingua/Stem/Snowball.pm
    ===================================================================
    ...
    +
     # a shared home for the actual struct sb_stemmer C modules.
     $stemmifier = Lingua::Stem::Snowball::Stemmifier->new;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://691130]
Approved by almut
Front-paged by salva
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2021-01-25 06:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?