From: "Steve Graegert" <graegerts@gmail.com>
To: James Colannino <james@colannino.org>
Cc: linux-c-programming <linux-c-programming@vger.kernel.org>
Subject: Re: Undefined reference to 'fmod'
Date: Sun, 11 Jun 2006 09:17:46 +0200 [thread overview]
Message-ID: <6a00c8d50606110017nc1d3aedk4e6616d64b0b1f35@mail.gmail.com> (raw)
In-Reply-To: <448B9DA5.7050708@colannino.org>
On 6/11/06, James Colannino <james@colannino.org> wrote:
> Hey everyone. I included the math.h header, proceeded to use fmod(),
> then got the following error:
>
> /tmp/ccKQxpJi.o: In function `main':
> 04-03-calc.c:(.text+0x144): undefined reference to `fmod'
> collect2: ld returned 1 exit status
>
> Does anybody know why it won't link? fmod() is a part of the standard
> library.
Use the -lm switch to link against libm.a (the math library).
\Steve
next prev parent reply other threads:[~2006-06-11 7:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-11 4:35 Undefined reference to 'fmod' James Colannino
2006-06-11 7:17 ` Steve Graegert [this message]
2006-06-11 7:18 ` Glynn Clements
[not found] ` <17547.46674.360830.637227@cerise.gclements.plus.com>
2006-06-11 17:58 ` James Colannino
2006-06-11 19:20 ` Steve Graegert
2006-06-14 15:41 ` James Stevenson
2006-06-15 0:20 ` Glynn Clements
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=6a00c8d50606110017nc1d3aedk4e6616d64b0b1f35@mail.gmail.com \
--to=graegerts@gmail.com \
--cc=james@colannino.org \
--cc=linux-c-programming@vger.kernel.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 NNTP newsgroup(s).