Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Better way to force Inline to use compiled binary instead of C source?

by vr (Curate)
on Jun 11, 2022 at 22:57 UTC ( [id://11144700]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    END
    
    say add( 5, 7 );
    
  2. or download this
    use Inline::MakeMaker;
    WriteMakefile( NAME => 'myC', VERSION_FROM => 'myC.pm' );
    
  3. or download this
    package myC;
    our $VERSION = 1;
    ...
    }
    END
    1;
    
  4. or download this
    package myC;
    our $VERSION = 1;
    use Inline C => 'END', VERSION => 1, NAME => 'myC';
    1;
    
  5. or download this
    use strict;
    use warnings;
    ...
    use myC;
    
    say myC::add( 5, 7 );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-25 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found