bard@jessica.Stanford.EDU (David Hopper) (03/23/90)
As a budding C guru, I was hoping someone could help me with a not-so-technical problem (I just started teaching myself C, so bear with me). I am going through the newest Kernighan-Ritchie book trying out the different introductory C programs on the Sozobon-C compiler (zc). I got to the third program in the book-- a floating-point version of a Fahrenheit->Celsius con- verter-- and the executable corrupts the task (I have srt-- it would have guru'd otherwise). The program compiles okay, but BLink (version 6.7) chokes on the Fahrenheit.o file. It is finding 'undefined functions' in the file, in the form of 'fp...'. The .c file is verbatim from the book, and I've made all the necessary assigns (I'm still on a floppy system). I am using the 'cc' front end to compile the thing. It is the latest version, as far as I know. The 'zc' compiler is at 1.01. It compiled 'Hello World' and an integer version of the Fahrenheit converter with no problems. Any response will be appreciated (barring "Buy Lattice/Manx"-- I have enough trouble finding my next meal). Dave Hopper /// Yesterday, CS. | bard@jessica /// Today, Anthro/History. | .Stanford.EDU \\\/// | \XX/ Tomorrow... URBAN TERRORISM! | (Mel Blanc lives!)
a275@mindlink.UUCP (Travers Naran) (03/23/90)
> bard writes: > > guru'd otherwise). The program compiles okay, but BLink (version 6.7) chokes > on the Fahrenheit.o file. It is finding 'undefined functions' in the file, > in > the form of 'fp...'. The .c file is verbatim from the book, and I've made > all > the necessary assigns (I'm still on a floppy system). I am using the 'cc' > front end to compile the thing. It is the latest version, as far as I know. > The 'zc' compiler is at 1.01. Try cc -lm Farenheit.c. The problem is that cc doesn't auto link the math link library whee all the fp routines are. So always remember to link the m.lib when using fp! -- ------------------------------------------------------------------- Travers "T'aran" Naran (I am male) Simon Fraser University, Computing Science Whovian, Prober, Treker, Quantum Leaper.... Mailing addresses: Usenet Travers_Naran@mindlink.UUCP or uunet!van-bc!rsoft!mindlink!Travers_Naran ------------------------------------------------------------------
eb15+@andrew.cmu.edu (Edward D. Berger) (03/23/90)
To the best of my knowlege, ZC does not have fully implemented math libraries. The version I recieived (Thanks Tad!), had some mention of this in the docs. I have only glanced over the version on FF314 which did not mention anything about the changes to the version I had. (No surprise only a few people had access to it.) If anyone has updated/finished the libraries please contact me. I'd like to get back into it. If the author still needs the "October Sozobon 1.2 update source4s" please send me email, and I will gladly send them off to you. ( I don't think my messages ever found their way to you. -Ed Berger eberger@b.psc.edu (preferred) eberger@cpwpsca.bitnet eb15@andrew.cmu.edu