This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
g77(linux):How to use getc() function with fortran program?
- To: help-gcc at gnu dot org
- Subject: g77(linux):How to use getc() function with fortran program?
- From: jchauvin at netcom dot com (John H. Chauvin)
- Date: 2 Sep 1999 17:54:58 GMT
- Newsgroups: gnu.gcc.help
- Organization: NETCOM / MindSpring Enterprises, Inc.
- Xref: wodc7nx0 gnu.gcc.help:821
I am running the following version of g77 under Linux:
g77 version egcs-2.91.66 19990314 (egcs-1.1.2 release)
and have encountered a problem porting a fortran program
from my Silicon Graphics workstation to Linux.
The fortran program uses the C function getc() to return
the next input character. I was able to use this function
directly in my fortran program on the SGI. When I try and
compile the same program using Linux g77, I get the
following error:
undefined reference to `getc_'
Any suggestions?
Thanks,
John Chauvin
--
John H. Chauvin jchauvin@netcom.COM
Netcom - Online Communication Services San Jose, CA