Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.6.2.17 $; site uiucdcsb.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!inuxc!pur-ee!uiucdcsb!yost From: yost@uiucdcsb.UUCP Newsgroups: net.lang.f77 Subject: main() vs. MAIN_() Message-ID: <23500005@uiucdcsb.UUCP> Date: Sun, 27-Jan-85 14:46:00 EST Article-I.D.: uiucdcsb.23500005 Posted: Sun Jan 27 14:46:00 1985 Date-Received: Tue, 29-Jan-85 05:37:17 EST Lines: 17 Nf-ID: #N:uiucdcsb:23500005:000:763 Nf-From: uiucdcsb!yost Jan 27 13:46:00 1985 I have a problem...I have a package of library routines written in FORTRAN and I'm trying to write C programs that call them. I've gotten everything to work except the following: if I call my main routine "main()" everything compiles but fortran output is directed to the file "fort.6" which is supposed to be connected to the terminal. If I call my main routine "MAIN_" (as, I guess, it would be called in the C intermediate code from the fortran compiler??) the fortran output and input are connected to the terminal. The problem is that I want my main routine to be called "main()" and NOT "MAIN_()". I don't know if you even get argc and argv as parameters with "MAIN_()", but that's beside the point. Any solutions? Any suggestions? Jeff Yost