home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!infoserv!celeborn!steve
- From: steve@Celeborn.lvunix.com (Steve Slade)
- Subject: Re: FP formats not linked
- Newsgroups: comp.lang.c
- References: <1992Dec30.023547.1076@cpp.uucp>
- X-Newsreader: TIN [version 1.1 PL8]
- Message-ID: <steve.00nf@Celeborn.lvunix.com>
- Date: 31 Dec 92 00:25:08 PST
- Organization: Not even Close
- Lines: 16
-
- 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]);
- Well I'm still learning C my self but I think you have to define b_avg[9]
- like this
- long double b_avg[9];
-
- because scanf is looking for a long double and you declared it has only a
- double.
-