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

RFC: Calling Perl from C

by jhughe90 (Novice)
on Mar 24, 2010 at 20:17 UTC ( #830663=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #include <EXTERN.h>               /* from the Perl distribution     */
    #include <perl.h>                 /* from the Perl distribution     */
    ...
     *         perl_env_end();
     *    }
     */
    
  2. or download this
    includes:  path to   perl.h 
    
    ...
    
        LOADLIBES=-L/usr/lib/perl5/5.8.8/i686-linux-thread-multi-ld/CORE
        STD_LIBS= -lperl
    
  3. or download this
        LOADLIBES=-L/project/c_to_perl/lib/    This is where libperlenv.a 
    +resides
        
        LDLIBS= -lperlenv `perl -MExtUtils::Embed -e ccopts -e ldopts`
    
  4. or download this
    use MySpecialLib::IO;    # Our IO library that reads/writes encrypted 
    +data to the filesystem
    
    ...
    
            return $out_buffer;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2019-11-22 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (110 votes). Check out past polls.

    Notices?