> # As I understand it, you need this to build... > package ChmFile; > > our $VERSION = '0.01'; > > # switch to main just before use Inline... > package main; > use Inline ( > C => Config => LIBS => '-lchm', > VERSION => '0.01', > NAME => 'ChmFile', > CLEAN_AFTER_BUILD => 0 > ); > use Inline 'CPP'; > > __DATA__ > __CPP__ > ...
Tried it and it doesn't work. I get a very simple error saying that I can't build an Inline based CPAN distribution from the package main.