If, as I gather, this is calling Fortran from C, it sounds as though it's just doing it wrong. I don't have time or enthusiasm to figure out that package and any dependencies, but as an ex g77 maintainer I'll look at a small example if you can extract something worthwhile. I assume you've read the g77 manual on interoperating with C.