Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!usc!almaak.usc.edu!ajayshah From: ajayshah@almaak.usc.edu (Ajay Shah) Newsgroups: comp.lang.fortran Subject: Help me with make-ing f2c on a Sparcstation Message-ID: <27757@usc> Date: 28 Oct 90 07:06:46 GMT Sender: news@usc Organization: University of Southern California, Los Angeles, CA Lines: 54 Nntp-Posting-Host: almaak.usc.edu Originator: ajayshah@almaak.usc.edu I tried a lot of things without success. Each attempt generated a different set of errors, what is shown below is the "best" I could do. Does someone know a recipe for make-ing a working f2c system on a Sun? --------------------------------------------------------------------------- FIRST SHOWING YOU THE FORTRAN SOURCE: [max 4] cat main.f x = 0.0 call junk(x) write(6, *) x stop end [max 5] cat junk.f subroutine junk(x) real y y = x y = y + 1.0 x = y return end PROVE THE FORTRAN WORKS: [max 6] f77 main.f junk.f main.f: main.f: MAIN: junk.f: junk.f: junk: Linking: [max 7] a.out 1.00000 RUN SOURCE THROUGH F2C: [max 8] f2c < main.f > main.c MAIN: [max 9] f2c < junk.f > junk.c junk: [max 10] cc -c junk.c -lF77 -lI77 -lm -lc [max 11] cc main.c junk.o -lF77 -lI77 -lm -lc ld: Undefined symbol _MAIN_ --------------------------------------------------------------------------- Thanks! -- _______________________________________________________________________________ Ajay Shah, (213)734-3930, ajayshah@usc.edu The more things change, the more they stay insane. _______________________________________________________________________________