Mail Archives: djgpp/1995/08/23/04:27:18
>
>
> 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.
>
> 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
>
> and many more.
You gotta link with the f2c libs
gcc .... -lF77 -lI77 -lm -lc
(or gcc ... -lf2c -lm -lc)
depending on what libs there are - escaped me for the moment.
>
> One other thing. Does djgpp support double complex variables. I'm also
> getting an undefined reference to zsqrt and nm doesn't report it being in libm.a
> Do I have to write one myself?
>
> Thanks,
> Skip Egley
>
>
--Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de
- Raw text -