This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

g77(linux):How to use getc() function with fortran program?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]