Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

RFC: Calling Perl from C

by jhughe90 (Novice)
on Mar 24, 2010 at 20:17 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (8)
As of 2024-04-18 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found