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 make no difference. > > Thanx Rob, > > After a bit of googling, I found that the error usually refers to scoping > issue. > > With a bit of giggery-pokery I did > > #include <EXTERN.h> > #include <perl.h> > > static PerlInterpreter *my_perl; > > I had to do that to a few files but I the principle was the same and > it worked :-) > > I'd love to learn more C. I'm sure it would make me a better perler as > well as making my *NIX life easier.
Ah. Then you probably have a common header file (*.h) in all of the sources where you should have added perl.h. I encourage you to take the include out of all the sources you have modified and try to spot that common header. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/