Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

With Inline::C, how to link to external library?

by stevieb (Canon)
on Aug 07, 2016 at 19:12 UTC ( [id://1169301]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    cc -c -o dhtll.o dht11.c
    cc -o tempmon tempmon.c dht11.o -l wiringPi
    
  2. or download this
    use strict;
    use warnings;
    
    use Inline 'C';
    
  3. or download this
    perl: symbol lookup error: /home/pi/repos/scripts/c/rpi/dht11/library/
    +_Inline/lib/auto/perl_pl_96d1/perl_pl_96d1.so: undefined symbol: pinM
    +ode
    
  4. or download this
    use Config;
    my $ccflags .= $Config{ccflags} . " -l wiringPi";
    use Inline ('C' => 'END', ccflags => $ccflags);
    
  5. or download this
    Running Mkbootstrap for perl_pl_b1a3 ()
    chmod 644 "perl_pl_b1a3.bs"
    ...
     XS_EXTERNAL(boot_perl_pl_b1a3); /* prototype to pass -Wmissing-protot
    +ypes */
     ^
    Makefile:331: recipe for target 'perl_pl_b1a3.o' failed
    
  6. or download this
    use warnings;
    use strict;
    ...
    
        return(0);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1169301]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 02:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found