home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!sigmond
- From: sigmond@leland.Stanford.EDU (Steve Sigmond)
- Subject: Re: Help! <math.h> strangeness - thanks!
- Message-ID: <1992Sep10.165037.26335@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: DSG, Stanford University, CA 94305, USA
- References: <1992Sep9.154828.15038@Cadence.COM> <1992Sep10.003742.5413@leland.Stanford.EDU>
- Distribution: usa
- Date: Thu, 10 Sep 92 16:50:37 GMT
- Lines: 19
-
-
- >I have been trying to figure out why the following program won't work:
- >
- >#include <math.h>
- >
- >main()
- >{
- > printf("%f\n",sqrt(3.0));
- >}
-
- Thanks to all who responded...I tried cc test.c -lm and everything works.
-
-
-
- --
- E-mail: sigmond@leland.stanford.edu steve@ast1.spa.umn.edu
- sigmond@mensch.stanford.edu sigmond@cra.canon.com
- 70640.2661@compuserve.com
- <insert creativity here>
-