Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

calling perl program from C++

by baperl (Sexton)
on Oct 01, 2011 at 21:00 UTC ( #929064=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #include <EXTERN.h>
        #include <perl.h>
    ...
        perl_free(my_perl);
        PERL_SYS_TERM();
        }
    
  2. or download this
     g++ fn-test.cpp -o t 'perl -MExtUtils::Embed -e ccopts -e ldopts'
    g++: perl -MExtUtils::Embed -e ccopts -e ldopts: No such file or direc
    +tory
    fn-test.cpp:2:24: fatal error: EXTERN.h: No such file or directory
    compilation terminated.
    
  3. or download this
    force install ExtUtils::Embed
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://929064]
Approved by GrandFather
Front-paged by davido
help
Chatterbox?
[Lady_Aleena]: ^ or Discipulus...
[marioroy]: Many-core Engine
[choroba]: MCE
[karlgoethebier]: is about to reach nirvana tonight...
[Lady_Aleena]: It could have meant a "Miserably Cute Event" or "Man Crush Everyday". 8)
[Corion]: choroba: Re the one-shot thing, I also thought of bit vectors and/or indexes into one common array from the hashes, but that makes maintenance of all these indices a chorse
[Corion]: *core
[Corion]: ** chore
[Corion]: So I guess I will simply implement the linear scan first and wait with more fancy stuff until it becomes a problem
[karlgoethebier]: Lady_Aleena: ++ for "The Man Crusher Everyday"

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2017-05-29 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?