in reply to loading C shared object with perl
And that code needs to be placed between the line:double hypotenuse (double val_x, double val_y) { return sqrt (val_x*val_x + val_y*val_y); }
and the line:#include "hypotenuse.h"
You may subsequently find that you also need to link to libm (-lm) in order to resolve "sqrt".MODULE = Geometry PACKAGE = Geometry
|
|---|