Okay, did some Google'ng in groups and found messages from 1996 on this.
I just changed the XS code to declare argv as 'char * &argv'.  I did see
the example in the XS_CookBookA and several examples on how to put the
array on to the stack, including Nick's post from May(I think?).  Anyway
sorry to bother, I should have searched groups earlier.  I did do a
Google and perl-xs list search though.  =8^)  

                           Thanks,
                              STH

On Thu, 2004-09-23 at 09:13, Scott T. Hildreth wrote:
> Hello,
> 
>   I've seen this posted before, but I'm not sure what the answer is.
> I have an XS interface to a 'C' library, which I used h2xs to create.
> One of the functions takes argc & argv parameters.  The h2xs created
> argv as a char **, which is obviously correct.  When I run make test
> which is loading the module, it dies because XS_unpack_PtrPtr() is 
> undefined.  I see the typemap file in ExtUtils is defining  char ** as
> a T_PACKEDARRAY and so  XS_unpack_$ntype($arg) gets created.  Where is
> this?  Is it a function or a macro?  Do I need to implement it?  I saw
> the posting to packing a char ** on to the stack.  Do I need to do the 
> opposite?
> 
>                                  Thank You,
> 
>                                       STH

Reply via email to