🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #1274

Re: scanf problem in TC v2.01.

#1274
From: Bruce E. Golightly
Date: Mon, 12 Feb 1990 16:28
13 lines
1054 bytes
I just looked at this problem. As far as I can tell, TC simply doesn't link
the floating point routines if the only references are *printf or atof. The
solution I obtained from other sources was to include the statement:


              (void)exp(1.0);

somewhere in the code. This call need be done only once, and it appears to
force TC to link the necessary routines.

BTW - I got this solution from somebody on the "C" bboard, and got my ears
pinned back for daring to post a question about TC on that board. They ain't
the friendliest people in the world over there.
Technical Details
Message-ID: <wZpiEgG00WB4APW9Uy@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!bg0l+
References: <7192.25d1e107@dit.ie>, <1487@maytag.waterloo.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!bg0l+
From: bg0l+@andrew.cmu.edu (Bruce E. Golightly)
Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc
Subject: Re: scanf problem in TC v2.01.
Message-ID: <wZpiEgG00WB4APW9Uy@andrew.cmu.edu>
Date: 12 Feb 90 16:28:28 GMT
References: <7192.25d1e107@dit.ie>,
 <1487@maytag.waterloo.edu>
Organization: Carnegie Mellon, Pittsburgh, PA
Lines: 13
In-Reply-To: <1487@maytag.waterloo.edu>