INTRODUCTION: Inline::CPP -- Write Perl subroutines and classes in C++. Inline::CPP lets you write Perl subroutines and classes in C++. You don't have to learn XS or SWIG, you can just put code right "inline" in your source. Example: use Inline CPP => <<'END'; class JAxH { public: JAxH(char *x); SV* data(); private: SV *dat; }; JAxH::JAxH(char *x) { dat = newSVpvf("Just Another %s Hacker", x); } SV* JAxH::data() { return dat; } END print JAxH->new('Inline')->data(), "\n"; When run, this complete program prints: Just Another Inline Hacker. ----------------------------------------------------------------------------- FEATURES: Inline::CPP version 0.35 adds patches to allow successful on Solaris, Darwin, and many (but not all) NetBSD platforms. Additionally, all code is now Perl::Critic compliant (Level 4 for CPP.pm and grammar.pm, level 5 for Makefile.PL and the test suite). There has been a lot of code cleanup for readability and maintainability as well. Perl version 5.6.0 is now explicitly set as the minimum version under which Inline::CPP will build and work. ----------------------------------------------------------------------------- INSTALLATION: This module requires Inline::C.pm version 0.50 or higher to be installed. It also uses Parse::RecDescent. To install Inline::CPP do this: perl Makefile.PL make make test make install (On ActivePerl for MSWin32, use nmake instead of make.) (On Strawberry Perl you may use dmake instead.) As Makefile.PL runs you will be prompted for what C++ compiler and library to use. Accepting the default should work in nearly every case (and if it doesn't, let me know). ----------------------------------------------------------------------------- INFORMATION: - For more information on Inline::CPP see 'perldoc Inline::CPP'. - For information about Inline.pm, see 'perldoc Inline'. - For information about Inline::C (of which this is a subclass) see 'perldoc Inline::C', as well as 'perldoc Inline::C-Cookbook'. - For information on using Perl with C or C++, see 'perldoc perlapi' The Inline mailing list is inline@perl.org. Send mail to inline-subscribe@perl.org to subscribe. This module's development is under version control with Git, hosted on Github at https://github.com/daoswald/Inline-CPP Please send questions and comments to "David Oswald" Copyright (c) 2003 - 2012, Neil Watkiss, David Oswald. All Rights Reserved.