home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / c / 13469 < prev    next >
Encoding:
Text File  |  1992-09-10  |  932 b   |  32 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!sigmond
  3. From: sigmond@leland.Stanford.EDU (Steve Sigmond)
  4. Subject: Re: Help! <math.h> strangeness - thanks!
  5. Message-ID: <1992Sep10.165037.26335@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: DSG, Stanford University, CA 94305, USA
  8. References: <1992Sep9.154828.15038@Cadence.COM> <1992Sep10.003742.5413@leland.Stanford.EDU>
  9. Distribution: usa
  10. Date: Thu, 10 Sep 92 16:50:37 GMT
  11. Lines: 19
  12.  
  13.  
  14. >I have been trying to figure out why the following program won't work:
  15. >
  16. >#include <math.h>
  17. >
  18. >main()
  19. >{
  20. >  printf("%f\n",sqrt(3.0));
  21. >}
  22.  
  23. Thanks to all who responded...I tried cc test.c -lm and everything works.
  24.  
  25.  
  26.  
  27. -- 
  28. E-mail: sigmond@leland.stanford.edu        steve@ast1.spa.umn.edu
  29.         sigmond@mensch.stanford.edu        sigmond@cra.canon.com
  30.                                                 70640.2661@compuserve.com
  31. <insert creativity here>
  32.