Add __attribute__ ((gnu_inline)) to fix undefined reference to inline function (cal_c...