#!/usr/bin/perl use strict; use warnings; use Inline 'info', 'force', 'clean'; use Inline 'CPP'; print "9 + 16 = ", add(9, 16), "\n"; print "9 - 16 = ", subtract(9, 16), "\n"; __END__ __CPP__ random junk; int add(int x, int y) { return x + y; } int subtract(int x, int y) { return x - y; } #### $ ./testInline.pl <-----------------------Information Section-----------------------------------> Information about the processing of your Inline CPP code: Your source code needs to be compiled. I'll use this build directory: /home/andy/projects/rigel/libs/_Inline/build/testInline_pl_6b67 and I'll install the executable as: /home/andy/projects/rigel/libs/_Inline/lib/auto/testInline_pl_6b67/testInline_pl_6b67.so <-----------------------End of Information Section----------------------------> Use of uninitialized value in join or string at /usr/local/share/perl5/Inline/C.pm line 603. Undefined subroutine &main::add called at ./testInline.pl line 7.