use Inline C => <<'EOC'; #include void foo(mpfr_t * x) { mpfr_out_str(*x, .......); } EOC