Billy N. Patton <[EMAIL PROTECTED]> writes:
>My first excursion into XS I did not use h2xs.
>gbarr set up the base and I extended.

I know - I was "there" ;-)

>
>I, for one will be VERY impressed if you get h2xs to work in C++.  

h2xs or near derivative never will. It needs a reasonably complete C++ 
type parser.

>THat 
>was my original thought.  Rather than writing the .xs and the .pm I'l 
>just write a h2xs++ and be done with it.  I quickly realized that this 
>was an even larger task than the one I was trying to do with xs.  

Yup.

>SO 
>back off and just put 1 function at a time and test it thoroughly as I go.
>typmap ->ok
>.xs    -> compile ok

Warning free with g++ -Wall ?

>.pm    -< ok
>init.t -> crash and burn.

So you debug the thing - either with gdb or by liberally filling you
.xs file (and in particular typemmaps) with print statements.
And don't use C++ style IO for the debug till you know that 
that works right.


Reply via email to