Read-only release history for Inline-CPP
Perl Perl6
Switch branches/tags
stable gitpan_version/0.70 gitpan_version/0.69 gitpan_version/0.68 gitpan_version/0.67 gitpan_version/0.66 gitpan_version/0.65 gitpan_version/0.64 gitpan_version/0.63 gitpan_version/0.62 gitpan_version/0.61 gitpan_version/0.60 gitpan_version/0.59 gitpan_version/0.58 gitpan_version/0.57 gitpan_version/0.56 gitpan_version/0.55 gitpan_version/0.54_001 gitpan_version/0.54 gitpan_version/0.53 gitpan_version/0.52 gitpan_version/0.51 gitpan_version/0.49 gitpan_version/0.48 gitpan_version/0.47 gitpan_version/0.46 gitpan_version/0.45 gitpan_version/0.44 gitpan_version/0.43 gitpan_version/0.42_002 gitpan_version/0.42_001 gitpan_version/0.42 gitpan_version/0.41 gitpan_version/0.40_001 gitpan_version/0.40 gitpan_version/0.39 gitpan_version/0.38_004 gitpan_version/0.38_003 gitpan_version/0.38_002 gitpan_version/0.38_001 gitpan_version/0.38 gitpan_version/0.37 gitpan_version/0.36 gitpan_version/0.35 gitpan_version/0.34_004 gitpan_version/0.34_003 gitpan_version/0.34_002 gitpan_version/0.34_001 gitpan_version/0.34 gitpan_version/0.33_009 gitpan_version/0.33_008 gitpan_version/0.33_007 gitpan_version/0.33_005 gitpan_version/0.33_004 gitpan_version/0.33_003 gitpan_version/0.33_002 gitpan_version/0.33_001 gitpan_version/0.33 gitpan_version/0.32 gitpan_version/0.31 gitpan_version/0.30 gitpan_version/0.29 gitpan_version/0.28 gitpan_version/0.27 gitpan_version/0.26 gitpan_version/0.25 gitpan_version/0.24 gitpan_version/0.23 gitpan_version/0.22 gitpan_version/0.21 gitpan_version/0.20 gitpan_version/0.14 gitpan_version/0.13 gitpan_version/0.12 gitpan_version/0.11 gitpan_version/0.10 cpan_version/0.70 cpan_version/0.69 cpan_version/0.68 cpan_version/0.67 cpan_version/0.66 cpan_version/0.65 cpan_version/0.64 cpan_version/0.63 cpan_version/0.62 cpan_version/0.61 cpan_version/0.60 cpan_version/0.59 cpan_version/0.58 cpan_version/0.57 cpan_version/0.56 cpan_version/0.55 cpan_version/0.54_001 cpan_version/0.54 cpan_version/0.53 cpan_version/0.52 cpan_version/0.51 cpan_version/0.49 cpan_version/0.48 cpan_version/0.47
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



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.


   use Inline CPP => <<'END';

   class JAxH {
       JAxH(char *x);

       SV* data();
       SV *dat;

   JAxH::JAxH(char *x) { dat = newSVpvf("Just Another %s Hacker", x); }
   SV* JAxH::data() { return dat; }


   print JAxH->new('Inline')->data(), "\n";

When run, this complete program prints:

   Just Another Inline Hacker.


It should go without saying, but you will need a C++ compiler on your system.
The C++ compiler should be of the same flavor as the C compiler used to build
perl itself.  If you're using GNU C++, be sure that you have the g++ front
end installed (it isn't installed by default on some Linux distros, for
example).  If you cannot execute 'g++ -v' from the command prompt, or some
variation for your specific C++ compiler,


If you have the HARNESS_OPTIONS environment variable set to run tests 
concurrently in multiple processes, the test suite will attempt to invoke
the C++ compiler multiple times concurrently.  Recent versions of Inline and
Inline::C have made progress on stamping out race conditions, but YMMV for now.

Also, some smoke testers run their testing in parallel, which may also be
problematic, and may result in FAIL reports for reasons that will never
occur in the real world.

See Makefile.PL, or the META.* files for lists of dependencies and minimum
dependency version numbers.  Minimum Perl version is now 5.8.1, same as Inline.

To install Inline::CPP do this:

perl Makefile.PL
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).


- For more information on Inline::CPP see 'perldoc Inline::CPP'.
- For information about, 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 Send mail to to subscribe.

This module's development is under version control with Git, hosted on Github

Please send questions and comments to "David Oswald" <>

Copyright (c) 2003 - 2014, Neil Watkiss, David Oswald. All Rights Reserved.