http://www.perlmonks.org?node_id=11158906


in reply to Re^2: External (extra) files when using Inline::CPP
in thread External (extra) files when using Inline::CPP

I ended up with doing some extra magic in BEGIN, to automate those compile steps

AIUI, if you were to instead turn the project into a module (with Makefile.PL and XS file, etc.) you wouldn't need to create a library, nor would you even need to precompile the .cpp file.
That can all be taken care of automatically by the Makefile.PL, courtesy of the OBJECT=>'$(O_FILES)' option being passed to WriteMakefile() .

However, AFAIK, that capability has not been ported to the Inline::C and Inline::CPP build procedures.
I'm not sure why that has not yet been attended to. Maybe it's difficult, or maybe it's just that no-one has got around to doing it.

Cheers,
Rob