Intinsic calls from g77
Dave Love
d.love@dl.ac.uk
Tue Oct 13 11:03:00 GMT 1998
>>>>> "BK" == Kaufman, Barry <KAUFMBA@mail.northgrum.com> writes:
BK> Help! I've trying to port a Fortran program which uses the
BK> getc() from lib.c. The appropriate header is included in a
BK> subroutine written in C. All the Fortran is compiled into a
BK> library archive. The C code is then compiled with the library
BK> resulting in "undefined getc_".
BK> I'm not sure if this is a bug but it used to work using xlf.
I very much doubt it's a bug in any egcs component; there's certainly
no evidence above. (xlf's default lack of external name mangling is a
liability; you can arrange the same thing with g77 but I wouldn't
recommend it.)
BK> Thanks in advance for any comments or suggestions.
g77 has `fgetc' intrinsics. See the manual.
More information about the Gcc-bugs
mailing list