This group chooses to help only other experts. Beginners are not welcome here. I've ask several questions about C++ and have recieved no response. Guess my questions were too trivial. Too obvious to an expert. Too far below them to answer.
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
-- ___ _ ____ ___ __ __ / _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___ / _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \ /____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/ /___/ Texas Instruments ASIC Circuit Design Methodlogy Group Dallas, Texas, 214-480-4455, [EMAIL PROTECTED]