Nalina has asked for the wisdom of the Perl Monks concerning the following question:
I didn't understand the functionality of this program, still i tried to compile it but got the following errors#include <EXTERN.h> /* from the Perl distribution */ #include <perl.h> /* from the Perl distribution + */ static PerlInterpreter *my_perl; /*** The Perl interpreter +***/ int main(int argc, char **argv, char **env) { my_perl = perl_alloc(); perl_construct(my_perl); perl_parse(my_perl, NULL, argc, argv, (char **)NULL); perl_run(my_perl); perl_destruct(my_perl); perl_free(my_perl); }
How do I resolve it?Compiling E:\PERL_INC.C: Error E:\PERL_INC.C 1: Unable to open include file 'EXTERN.H' Error E:\PERL_INC.C 2: Unable to open include file 'PERL.H' Error E:\PERL_INC.C 5: Declaration syntax error Error E:\PERL_INC.C 10: Undefined symbol 'my_perl' in function main Error E:\PERL_INC.C 12: Undefined symbol 'NULL' in function main Warning E:\PERL_INC.C 16: Parameter 'env' is never used in function m +ain
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Embedding perl in C
by reneeb (Chaplain) on Aug 23, 2004 at 10:21 UTC | |
|
Re: Embedding perl in C
by ambrus (Abbot) on Aug 23, 2004 at 10:29 UTC | |
by Nalina (Monk) on Aug 23, 2004 at 11:05 UTC | |
by ambrus (Abbot) on Aug 23, 2004 at 11:42 UTC | |
by Grygonos (Chaplain) on Aug 23, 2004 at 13:17 UTC | |
by ambrus (Abbot) on Aug 23, 2004 at 17:20 UTC | |
|
Re: Embedding perl in C
by Courage (Parson) on Aug 23, 2004 at 15:43 UTC | |
by tilly (Archbishop) on Aug 23, 2004 at 15:48 UTC | |
by Poetic Justice (Monk) on Aug 25, 2004 at 03:12 UTC |