home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18960 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  1.4 KB

  1. Path: sparky!uunet!munnari.oz.au!spool.mu.edu!umn.edu!cybrspc!roy
  2. From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Float point format not loaded?
  5. Message-ID: <ZVRiwB1w165w@cybrspc.UUCP>
  6. Date: Mon, 28 Dec 92 19:12:46 CST
  7. References: <1992Dec28.174634.15432@mksol.dseg.ti.com>
  8. Organization: Villa CyberSpace, Minneapolis, MN
  9. Lines: 24
  10.  
  11. mccall@mksol.dseg.ti.com (fred j mccall 575-3539) writes:
  12.  
  13. > In <1he75eINNmlg@uwm.edu> pegasus@csd4.csd.uwm.edu (David R Hucke) writes:
  14. > >I am having a problem with Turbo C 2.0.
  15. > >I am writing a program that does some float calculations and when I run the
  16. > >program I get a run-time error saying:  Floating point formats not loaded.
  17. > >Abnormal termination.
  18. > Try DOING something with the fp variable that you declared (assign to
  19. > it or something).  Otherwise, the floating point libraries don't get
  20. > linked in.
  21.  
  22. What you really need to do is some floating-point math.  In my
  23. experience, simple assignments don't count as float math.  I just
  24. put 'exp(1.0);' in the early part of main(), and the problem disappears.
  25.  
  26. One might think Borland would have fixed this, by now.  But I hear that
  27. the bug persists into Borland C++ 3.0.
  28. --
  29. Roy M. Silvernail --    [my machine ] "Sometimes, you're the windshield....
  30. roy%cybrspc@cs.umn.edu  [my opinions]            sometimes, you're the bug!"
  31. cybrspc!roy@cs.umn.edu  [my $0.0275 ]                      --Mark Knopfler
  32.