home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19305 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.3 KB

  1. 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
  2. From: gm08@fg30.rz.uni-karlsruhe.de (Steffani)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: FP formats not linked
  5. Date: 6 Jan 1993 14:03:10 GMT
  6. Organization: University of Karlsruhe, Germany
  7. Lines: 20
  8. Message-ID: <1ieoquINN9rc@nz12.rz.uni-karlsruhe.de>
  9. References: <1992Dec30.023547.1076@cpp.uucp> <steve.00nf@Celeborn.lvunix.com>
  10. Reply-To: gm08@rz.uni-karlsruhe.de
  11. NNTP-Posting-Host: fg30.rz.uni-karlsruhe.de
  12.  
  13. In article <steve.00nf@Celeborn.lvunix.com> steve@Celeborn.lvunix.com (Steve Slade) writes:
  14. >Rich Bauer (root@cpp.uucp) wrote:
  15. >: When scanf goes to get the first batting average in this program,
  16. >: the program terminates abnormally with the error message:
  17. >: "floating point formats not linked"
  18. >
  19. >: What does this mean?  I can't find it in the manuals, and the code
  20. >: is correct as far as I can tell.  What's the problem?
  21. >
  22. >:     double b_avg[9];
  23. >:       scanf("%lf", &b_avg[i]);
  24. the problem is:       
  25. your program dows not use floating-point functions. for this
  26. reaseon, the linker is not orderd to link the math-lib. 
  27. if you e. g. have a multiplication of two doubles the compiler
  28. will tell the linker to use the math-lib (at least the microsoft
  29. does) to solve your problem you have to find out how to link 
  30. the math lib
  31. hans friedrich steffani
  32.  
  33.