bakunin has asked for the wisdom of the Perl Monks concerning the following question:
This code compiles and links with no problems but when executed seg faults (when newAV() called).#include "EXTERN.h" #include "perl.h" #include "XSUB.h" int main() { AV* list; list = newAV(); av_push(list,newSViv(5)); I32 n = av_len(list); printf("d%\n",n); return 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl API with C
by kvale (Monsignor) on Apr 17, 2004 at 19:46 UTC | |
by bakunin (Scribe) on Apr 17, 2004 at 20:04 UTC | |
by tilly (Archbishop) on Apr 17, 2004 at 20:58 UTC | |
by bakunin (Scribe) on Apr 18, 2004 at 08:51 UTC |