in reply to Inline c
I think you need to link to libm.
After Compline,Zaxo
Insert this statement before your use Inline C => . . . heredoc: use Inline C => Config => LIBS => '-lm'; That's covered on p.3 of Inline::C and in the cookbook.