Question 14.13

I'm having trouble with a Turbo C program which crashes and says something like ``floating point formats not linked.''


Some compilers for small machines, including Borland's (and Ritchie's original PDP-11 compiler), leave out certain floating point support if it looks like it will not be needed. In particular, the non-floating-point versions of printf and scanf save space by not including code to handle %e, %f, and %g. It happens that Borland's heuristics for determining whether the program uses floating point are insufficient, and the programmer must sometimes insert an extra, explicit call to a floating-point library routine to force loading of floating-point support. (See the comp.os.msdos.programmer FAQ list for more information.)


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback