Article View: comp.os.msdos.programmer
Article #751Re: Bug of Turbo C 2.0?
From: zcookbruc
Date: Wed, 15 Apr 1992 09:53
Date: Wed, 15 Apr 1992 09:53
34 lines
1856 bytes
1856 bytes
In article <1992Apr15.045942.9349@ux1.cso.uiuc.edu>, klg0582@uxa.cso.uiuc.edu (Ken-Huang Lin) writes: > > I was writing a program using Turbo C 2.0. The program seemed to be > working. However, after I moved part of the code into a function, it > gave me this run-time error message when the program reached the same > code now in the function: > > "scanf: floating point formats not linked" > > I downloaded the patch "tc2pat.arc" and applied it. Only some > patches would work. The file "patfloat.bat", which is supposed to fix > "floating point formats not linked" problem, said "Incorrect file or > version of program file". (The compiler is version 2.01.) Does > anyone have any clue? > > Ken H. Lin > khlin@uiwpls.ece.uiuc.edu here's a guess based on sources I've seen of other C libraries: Some libraries, because of size problems, don't have atof(), atod(), dtoa(), ftoa() in the main C library, instead they have a dummy function that says somthing along the lines of "floating point foramts not linked". The way to cure this (In the cases I've delt with) is to link in the maths library, if possible before the c library (est way to ensure linkage order in TC 2 is to use TLINK). I personally have never had the problem with any versions of TURBO/BORLAND C this may be because I always use TLINK. Sorry I can't give you accurate "i've done it information". ...BRU
Technical Details
Message-ID:
<1992Apr15.185310.1@cc.curtin.edu.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!uniwa!cujo!cc.curtin.edu.au!zcookbrucReferences:
<1992Apr15.045942.9349@ux1.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!uniwa!cujo!cc.curtin.edu.au!zcookbruc From: zcookbruc@cc.curtin.edu.au Subject: Re: Bug of Turbo C 2.0? Message-ID: <1992Apr15.185310.1@cc.curtin.edu.au> Lines: 34 Sender: news@cujo.curtin.edu.au (News Manager) Organization: Curtin University of Technology References: <1992Apr15.045942.9349@ux1.cso.uiuc.edu> Date: Wed, 15 Apr 1992 09:53:10 GMT