On Tue, 2008-09-09 at 08:16 +0200, Jan Dubois wrote:
> On Mon, 08 Sep 2008, Marvin Humphrey wrote:
> > On Sep 8, 2008, at 6:41 PM, Sisyphus wrote:
> >
> > > Looks like this is the result of a clash with the perl symbols
> > > do_close (Perl_do_close) and do_open (Perl_do_open) which, upon
> > > inspection of the perl source's doio.c, *do* take 2 and 7 arguments
> > > respectively.
> > >
> > > I don't have any advice on how to work around this particular
> > > problem.
> >
> > How do you turn off the prefix-stripping for Perl symbols, so that
> > they have to be invoked as Perl_do_close() rather than do_close() etc?
> 
> I would try to add
> 
>     #undef do_open
>     #undef do_close
> 
> after including the Perl headers.
> 
> Cheers,
> -Jan
> 

It works !!
Many thanks Jan. Your advice was the right one !
I don't know where those macros are defined in the perl headers but
undefing it is enough to work around the pb.

Best regards,

Christophe




Reply via email to