* Martin Michlmayr <[EMAIL PROTECTED]> [2006-03-12 16:54]:
> By the way, during configuration I also get the following (non-fatal)
> error (but certainly a error!). Unfortunately, I don't quite know how
> to fix this one:
>
> > checking for /usr/bin/perl... yes
> > checking if we can embed a Perl interpreter into GIFT... cc1plus: warning:
> > command line option "-Wdeclaration-after-statement" is valid for C/ObjC but
> > not for C++
> > perl-compile-test-program.cc: In function 'void xs_init()':
This helps:
--- perl-compile-test-program.cc~ 2006-05-27 11:21:02.000000000 +0000
+++ perl-compile-test-program.cc 2006-05-27 11:30:39.000000000 +0000
@@ -57,9 +57,11 @@
# endif
#endif
+static PerlInterpreter *my_perl; /*** The Perl interpreter ***/
+
EXTERN_C void xs_init _((void));
-EXTERN_C void boot_DynaLoader _((CV* cv));
+EXTERN_C void boot_DynaLoader _((PerlInterpreter* p, CV* cv));
EXTERN_C void
xs_init(void)
@@ -118,8 +120,6 @@
char **env
) {
- static PerlInterpreter *my_perl; /*** The Perl interpreter ***/
-
my_perl = perl_alloc();
perl_construct(my_perl);
perl_parse(my_perl, NULL, argc, argv, (char **)NULL);
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]