1Inherit.xs, Inherit.pm, Makefile.PL, INLINE.h and CPP.map were produced by
2cd'ing to this (ie demos/cpp) directory and running the following one liner:
3
4perl -MInlineX::CPP2XS -e "InlineX::CPP2XS::cpp2xs('Math::Geometry::Planar::GPC::Inherit', 'main',  '.', {WRITE_MAKEFILE_PL => 1, VERSION => 0.11, WRITE_PM => 1})"
5
6The assumption is that you're using 'g++' as your cpp compiler. If that's not
7the case then you need to amend the CC entry in the above command appropriately.
8
9That one liner is as run in a typical Windows shell. For a typical nix shell you'll
10need to interchange the double-quotes and the single-quotes.
11
12For the purposes of providing a complete example of what is needed, I've
13also included, in this directory (ie 'demos/cpp'), a MANIFEST, a README (this file)
14and a test file (test.pl).
15
16Probably worth removing Inherit.pm, Inherit.xs, Makefile.PL, CPP.map and INLINE.h,
17then running the above one liner for yourself - just to verify that everything
18works properly for you.
19
20Then simply run:
21
22perl Makefile.PL
23make test
24
25You've now created, from the C++ code in demos/cpp/src/Inherit.cpp, a normal
26module that has no dependence on Inline.
27
28You would even be able to then successfully run 'make install' - though,
29given that this module doesn't really do anything useful, I don't know why
30anyone would want to install it. It's also quite ludicrous to be creating
31Inherit.pm in the Math::Geometry::Planar::GPC namespace.
32
33Cheers,
34Rob
35