Sisyphus wrote:
use Inline C => './try.c';
foo();
That works fine if foo() is defined in try.c.
Note that you must provide a '/' in the filename - otherwise Inline does
not recognise that you're specifying a file. You could also specify a
fully-qualified filename if you want, but the following won't work:
use Inline => 'try.c';
foo();
Ahhhh! I was wondering how it could tell it was a filename. In fact it
can't in some circumstances.
That makes sense.
I didn't notice this stuff in the POD. If it ain't there it ought to be.
Thanks,
-- John.