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

Reply via email to