Mail Archives: djgpp/1995/08/23/03:14:11
> From: egley AT albany DOT net (Skip Egley)
>
> I'm trying to compile fortran code converted to C via f2c.
> I'm getting many undefined references, most (if not all) of which are
> generated by f2c. I'm including all the libraries (i.e. -lgpp -lgpl -lm
> -lpc) that are mentioned in the FAQ. I also used nm to search for these in
> all the libraries.
You should add the libraries that are mentioned in f2c's FAQ, too, i.e.
-lF77 -lI77 (and *after* that, -lm ...).
There's a version of f2c where these two libraries are in one - check Your
installation.
>
> I'm hoping that someone recognizes these and tells me that I should be doing
> such and such. Some of the undefined references are:
>
> do_fio
> e_wsfe
> s_wsfe
> i_len
> s_copy
these are from f2c's libraries
>
> and many more.
>
> One other thing. Does djgpp support double complex variables. I'm also
that's a matter of FORTRAN, not C; f2c does the mapping
> getting an undefined reference to zsqrt and nm doesn't report it being in libm.a
> Do I have to write one myself?
this is in F77, too
>
> Thanks,
> Skip Egley
>
>
Thomas
- Raw text -