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 function) > store.c:592: error: (Each undeclared identifier is reported only once > store.c:592: error: for each function it appears in.) > > I solved that by adding > > 'static PerlInterpreter *my_perl;' near the top of the file. > > After make distclean; perl Makefile, make and the same error with a > different file. This time however, once I added the static declaration > I got this error: > > store.c:13: error: expected '=', ',', ';', 'asm' or '__attribute__' > before '*' token > > It refers to the static declaration mentioned above. > > I am a super newbie when it comes to C and I know this might be > straying OT but does anyone know how I can make this static declartion > in the correct way or perhaps point me to a list that might be able to > help?
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. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/