I had to do a lot of stuff by hand, but I found that XS can
do C++ things even if h2xs doesn't guess them out right.
So, even if you don't get h2xs to work very well, you can
still probably do what you need to do.

On Sat, Jun 26, 2004 at 06:21:37PM -0300, SilvioCVdeAlmeida wrote:
> Hello,
> 
> How suitable is h2xs for generating C++Perl bindings? I couldn't manage
> it to work as I expected.
> 
> I'm trying to build a Perl module to access a C++ library, closely
> following "Extension based on .h and .c files" from h2xs manpage:
> 
> 1. start dirs:
>    h2xs -Afn Pack
> 2. copy .h and .c (.cc in my case) to Pack/
> 3. create extension:
>    h2xs -Oxan Pack head_1.h head2.h
> 4. archive and test:
>    cd Pack
>    perl Makefile.PL
>    make dist
>    make
>    make test
> 
> It breaks in make test, because generated Pack.c (-- not Pack.cc as I
> wanted --) ask for C compilation, which do not find iostream, string,
> and other standard C++ headers.
> 
> Any help would be very appreciated.
> 
> Silvio

-- 
If riding in an airplane is flying, then riding in a boat is swimming.
52 jumps, 15.0 minutes of freefall, 30.6 freefall miles.

Reply via email to