Re: perl_construct segfaults under cygwin

2004-03-16 Thread Luke Diamand
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

perl_construct segfaults under cygwin

2004-03-15 Thread Luke Diamand
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