In case anyone else is ever stuck trying to figure this out, the answer
is to RTFM.
It turns out that in perl5.8.? you need to add a call to:
PERL_SYS_INIT3(&argc,&argv,&env)
before you do anything else with perl. This is documented in the Perl
embed man page.
Luke Diamand wrote:
I'm seeing
I'm seeing the call to perl_construct() segfault under cygwin. The same
code works fine on linux.
Here's the code:
#include
#include
static PerlInterpreter *my_perl;
int main() {
my_perl = perl_alloc();
perl_construct(my_perl);
printf("Hooray\n");
}
The last 10 lines of
2 matches
Mail list logo