Re: Perl C, XS help

2008-12-01 Thread Rob Dixon
Dermot wrote: > 2008/12/1 Rob Dixon <[EMAIL PROTECTED]>: >> Dermot wrote: >>> store.c:13: error: expected '=', ',', ';', 'asm' or '__attribute__' > >> You probably have a poor C compiler. Try changing the declaration to >> >> PerlInterpreter *my_perl; >> >> As long as it is in main it should

Re: Perl C, XS help

2008-12-01 Thread Dermot
2008/12/1 Rob Dixon <[EMAIL PROTECTED]>: > Dermot wrote: >> >> store.c:13: error: expected '=', ',', ';', 'asm' or '__attribute__' > > You probably have a poor C compiler. Try changing the declaration to > > PerlInterpreter *my_perl; > > As long as it is in main it should make no difference.

Re: Perl C, XS help

2008-12-01 Thread Rob Dixon
Dermot wrote: > Hi, > > I am trying port an Custom Perl module from one server to another. The > module uses C/XS and was built in 2001/2. I got the source and did > `perl Makefile.PL; make`. There was an error in one .c file: > > ... > store.c:592: error: 'my_perl' undeclared (first use in this

Perl C, XS help

2008-12-01 Thread Dermot
Hi, I am trying port an Custom Perl module from one server to another. The module uses C/XS and was built in 2001/2. I got the source and did `perl Makefile.PL; make`. There was an error in one .c file: ... store.c:592: error: 'my_perl' undeclared (first use in this function) store.c:592: error:

Re: XS help

2008-07-25 Thread sisyphus
On Jul 25, 8:35 pm, [EMAIL PROTECTED] (Rajnikant) wrote: > Hello All, > > I'm trying to call C routine from Perl using XS but some how my 'make test' > is failing. Following are the steps I did : > > file: hypotenuse.h >       double hypotenuse(double x, double y); /* Func Declaration */ > file: hy

XS help

2008-07-25 Thread Rajnikant
Hello All, I'm trying to call C routine from Perl using XS but some how my 'make test' is failing. Following are the steps I did : file: hypotenuse.h double hypotenuse(double x, double y); /* Func Declaration */ file: hypotenuse.c /* Func Definition */ double hypotenuse(double