🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6075

Turbo C 2.0 not linking printf f.p. formats

#6075
From: Jack Greenbaum
Date: Mon, 06 May 1991 16:49
21 lines
1488 bytes
Within a graphics based application written using Turbo C 2.0 I use 
sprintf("%f ...., but when the program gets there it aborts and prints
the run-time error message "printf : floating point formats not linked". 
The program runs correctly if I remove this line.

I found no documentation on run-time errors, and couldn't find any compiler 
or linker switches that mentioned floating point formats or printf. I'm 
linking all of the required libraries as far as I can tell (cs, maths, 
f87, emu, graphics). 

Just for fun I put a printf("%f\n",1.0) as the first line in the program, 
and got the same error.

Has anyone ever seen this?

-- 
-------------------------------------------------------------------------------
Jack Greenbaum      |UC Santa Barbara
jackg@bears.ucsb.edu|Department of Electrical and Computer Engineering, Box 253
(805) 893-4461      |Santa Barbara, Ca. 93106, USA
-------------------------------------------------------------------------------
Technical Details
Message-ID: <11067@hub.ucsb.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!elroy.jpl.nasa.gov!usc!snorkelwacker.mit.edu!stanford.edu!agate!ucbvax!ucsd!hub.ucsb.edu!capella!jackg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!elroy.jpl.nasa.gov!usc!snorkelwacker.mit.edu!stanford.edu!agate!ucbvax!ucsd!hub.ucsb.edu!capella!jackg
From: jackg@capella.ucsb.EDU (Jack Greenbaum)
Newsgroups: comp.os.msdos.programmer
Subject: Turbo C 2.0 not linking printf f.p. formats
Message-ID: <11067@hub.ucsb.edu>
Date: 6 May 91 16:49:17 GMT
Sender: news@hub.ucsb.edu
Reply-To: jackg@capella.ucsb.EDU (Jack Greenbaum)
Organization: UC Santa Barbara
Lines: 21