🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #42141

Re: scanf problem in TC v2.01.

#42141
From: Stephen M. Dunn
Date: Sun, 11 Feb 1990 03:20
23 lines
1555 bytes
In article <1487@maytag.waterloo.edu> dmurdoch@watstat.waterloo.edu (Duncan Murdoch) writes:
$The problem is that sometimes TC forgets to link in the floating point formats,
$just as the message says.  I don't know the exact conditions to force linking,
$but an explicit reference to a certain routine is sufficient.  The routine is
$named something like __turbofloat.  You'll have to use TDUMP on a .OBJ file
$that works, and look through the externals it declares, to find the exact name.
$Then add a line something like
$  if (1 == 0 )
$     __turbofloat();

   Assuming that Duncan is correct about the routine name as being
__turbofloat, note that the call would have to be

if (1 == 0)
   _turbofloat ();

since C compilers prepend symbol names with underscores upon compilation.

-- 
Stephen M. Dunn                               cs4g6ag@maccs.dcss.mcmaster.ca
          <std_disclaimer.h> = "\nI'm only an undergraduate!!!\n";
****************************************************************************
               I Think I'm Going Bald - Caress of Steel, Rush
Technical Details
Message-ID: <25D4D9FB.3208@maccs.dcss.mcmaster.ca>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!geac!maccs!cs4g6ag
References: <7192.25d1e107@dit.ie> <1487@maytag.waterloo.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!geac!maccs!cs4g6ag
From: cs4g6ag@maccs.dcss.mcmaster.ca (Stephen M. Dunn)
Newsgroups: comp.sys.ibm.pc,alt.msdos.programmer
Subject: Re: scanf problem in TC v2.01.
Message-ID: <25D4D9FB.3208@maccs.dcss.mcmaster.ca>
Date: 11 Feb 90 03:20:27 GMT
References: <7192.25d1e107@dit.ie> <1487@maytag.waterloo.edu>
Reply-To: cs4g6ag@maccs.dcss.mcmaster.ca (Stephen M. Dunn)
Organization: McMaster University, Hamilton, Ontario
Lines: 23