From: Joachim Bauernberger <nuklear@singnet.com.sg>
To: help-gcc@gnu.org
Subject: Re: howto sqrt?
Date: Fri, 31 Dec 1999 22:24:00 -0000 [thread overview]
Message-ID: <384D289B.62CCAB91@singnet.com.sg> (raw)
Message-ID: <19991231222400.fn12-IYTOwdGJqbPxntTG05m1zGMMaan_3WmBIfPV2o@z> (raw)
In-Reply-To: <82ikm6$okv$1@oravannahka.helsinki.fi>
haha@here.org wrote:
> Joachim Bauernberger <nuklear@singnet.com.sg> wrote:
>
> :>i'm pretty new using the gcc. most of my programming sofar has been
> :>under windoze 8-( using the borland tools.
> :>unfortunatly i am not able to use the sqrt or pow function. can anybody
> :>tell me what i'm doing wrong here?
>
> Yes. You haven't read the FAQ which answers your question which has been
> asked and answered frequently.
>
> :>if i compile the following c program using the compiler options: gcc -g
> :>-D_GNU_SOURCE -Wall filename.c -o outputfile
> :>i get these errors: undefined reference to 'sqrt'
>
> You just need one more option: -lm, which links in the math-library.
> This library defines sqrt(), pow() and many other mathematical functions.
> Haha!
no you're right i havn't read the faq.
thank's for pointing things out.
joachim!
next prev parent reply other threads:[~1999-12-31 22:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-07 1:36 Joachim Bauernberger
1999-12-07 1:50 ` haha
1999-12-07 7:34 ` Joachim Bauernberger [this message]
1999-12-31 22:24 ` Joachim Bauernberger
1999-12-31 22:24 ` haha
1999-12-31 22:24 ` Joachim Bauernberger
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=384D289B.62CCAB91@singnet.com.sg \
--to=nuklear@singnet.com.sg \
--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).