home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!fg30.rz.uni-karlsruhe.de!gm08
- From: gm08@fg30.rz.uni-karlsruhe.de (Steffani)
- Newsgroups: comp.lang.c
- Subject: Re: FP formats not linked
- Date: 6 Jan 1993 14:03:10 GMT
- Organization: University of Karlsruhe, Germany
- Lines: 20
- Message-ID: <1ieoquINN9rc@nz12.rz.uni-karlsruhe.de>
- References: <1992Dec30.023547.1076@cpp.uucp> <steve.00nf@Celeborn.lvunix.com>
- Reply-To: gm08@rz.uni-karlsruhe.de
- NNTP-Posting-Host: fg30.rz.uni-karlsruhe.de
-
- In article <steve.00nf@Celeborn.lvunix.com> steve@Celeborn.lvunix.com (Steve Slade) writes:
- >Rich Bauer (root@cpp.uucp) wrote:
- >: When scanf goes to get the first batting average in this program,
- >: the program terminates abnormally with the error message:
- >: "floating point formats not linked"
- >
- >: What does this mean? I can't find it in the manuals, and the code
- >: is correct as far as I can tell. What's the problem?
- >
- >: double b_avg[9];
- >: scanf("%lf", &b_avg[i]);
- the problem is:
- your program dows not use floating-point functions. for this
- reaseon, the linker is not orderd to link the math-lib.
- if you e. g. have a multiplication of two doubles the compiler
- will tell the linker to use the math-lib (at least the microsoft
- does) to solve your problem you have to find out how to link
- the math lib
- hans friedrich steffani
-
-