Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ULKYVX.BITNET!rwmira01 From: rwmira01@ULKYVX.BITNET (Rob Miracle) Newsgroups: comp.sys.ibm.pc Subject: Re: Turbo-C bug Message-ID: <31rwmira01@ULKYVX.bitnet> Date: 31 May 89 12:28:00 GMT References: <2556@Portia.Stanford.EDU> Sender: daemon@ucbvax.BERKELEY.EDU Organization: University of Louisville Lines: 32 In article <2556@Portia.Stanford.EDU> hobbes@Portia.Stanford.EDU (Andrew Zimmerman) writes: > >The following program doesn't run when compiled under Turbo-C 2.0. >(It does compile under Turbo-C, and it runs under Zortech C.) >Does anyone know if you can explicitly tell Turbo-C 2.0 to link in >the floating formats? > There is a compiler bug in Turbo-C V2.0 dealing with this problem. [s,v,f]scanf() does not notify the linker that it needs the floating point library. Borland has issued a patch and it is download-able from CompuServe (their offical support thingy). I suspect that any Service with a Borland Sig will have a copy of the patches. I also saw them come over netnews a few months ago. For this one problem, you can also put in a line double x; x = 1.0; and that should fix it, if you do it before the scanf I believe. Get the patches if you can. Rob -- Rob Miracle | Bitnet : RWMIRA01@ULKYVX CIS: 74216,3134 Programmer/Analyst-II | INTERNET : rwmira01%ulkyvx.bitnet@cunyvm.cuny.edu University of Louisville | UUCP : ...psuvax1!ulkyvx.bitnet!rwmira01 "Many truths that we cling to are only true from a certain point of view." -- Ob-Wan Kenobi