public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Arthur Gold <agold@bga.com>
To: help-gcc@gnu.org
Subject: Re: math.h
Date: Sun, 31 Oct 1999 13:57:00 -0000	[thread overview]
Message-ID: <380D52AF.1543D11B@bga.com> (raw)
Message-ID: <19991031135700.8s8_f11XiEUt67TFU_7dTQ-KjYxABtRQJm9zvZy_qfs@z> (raw)
In-Reply-To: <380D58F1.B400EF83@primenet.com>

"Dennis J. Sylvester" wrote:
> 
> I tried using the sqrt() function with gcc and get an error : undefined
> reference to 'sqrt'.  If I compile with g++ I have no problem.  I get
> the same result when trying to use pow() also.  What am I missing?
> 
> Any help would be appreciated.
> 
> Dennis
Add the option -lm to your command line when you compile.
</rant on>
...and read the FAQs...and the docs...it's all in there...in fact if you
LOOK, this has probably been covered at least twice this week on this
and similar newsgroups...
</rant off>

HTH,
--ag
-- 
Artie Gold, Austin, TX
mailto:agold@bga.com or mailto:agold@cs.utexas.edu
--
Pet peeve: "its" = belonging or pertaining to "it" | "it's" = "it is"

  reply	other threads:[~1999-10-31 13:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-19 21:55 math.h Dennis J. Sylvester
1999-10-19 22:29 ` Arthur Gold [this message]
1999-10-31 13:57   ` math.h Arthur Gold
1999-10-19 23:13 ` math.h Maurizio Loreti
1999-10-31 13:57   ` math.h Maurizio Loreti
1999-10-31 13:57 ` math.h Dennis J. Sylvester
2000-01-12  9:16 math.h Tom Filley
2000-04-01  0:00 ` math.h Tom Filley
2005-04-05  9:01 math.h John Poma
2005-04-05  9:21 ` math.h Leopold Palomo-Avellaneda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=380D52AF.1543D11B@bga.com \
    --to=agold@bga.com \
    --cc=help-gcc@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).