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