Trouble with cc/f77

Lawrence Anthony anthony at eeyore.caltech.edu
Sun Jan 27 22:11:50 AEST 1991


In article <1991Jan24.001055.3069 at ims.alaska.edu> fnddr at acad3.alaska.edu writes:
>A couple of cc/f77 problems have turned up (Ultrix 4.0/DS5000/Fortran 2.1).  The
>Second, when trying to combine a main program written in C with a subroutine
>written in Fortran, the Fortran built-in functions aren't found:
>  > cc -o prog main.c fortsub.o -lF77 -lU77 -lI77 -lm
>  ld:
>  Undefined:
>  sinf
>  cosf
>  sqrtf

try "f77 -o prog main.c fortsub.o -lU77 -lI77 -lF77 -lm -lc".
no guarantees, but it works for me.

lawrence anthony
lza at ulysses.caltech.edu



More information about the Comp.unix.ultrix mailing list