From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
To: tobias_meier@my-deja.com
Cc: help-gcc@gnu.org
Subject: Re: Problems with math.h
Date: Fri, 07 Jan 2000 00:51:00 -0000 [thread overview]
Message-ID: <org0waqn74.fsf@benta.lsd.ic.unicamp.br> (raw)
In-Reply-To: <85483i$a32$1@nnrp1.deja.com>
On Jan 7, 2000, tobias_meier@my-deja.com wrote:
> gcc MatheTest.c
> /tmp/ccdP8Uys.o: In function `main':
> /tmp/ccdP8Uys.o(.text+0xe): undefined reference to `exp'
> /tmp/ccdP8Uys.o(.text+0x37): undefined reference to `pow'
> collect2: ld returned 1 exit status
math.h is a *header*-file, it just supplies* declarations* of the math
functions. The *definitions* have already been compiled, and live in
the math *library*. You can link your program with the math library
by adding `-lm' to the compile+link command.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them
WARNING: multiple messages have this Message-ID
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
To: tobias_meier@my-deja.com
Cc: help-gcc@gnu.org
Subject: Re: Problems with math.h
Date: Sat, 01 Apr 2000 00:00:00 -0000 [thread overview]
Message-ID: <org0waqn74.fsf@benta.lsd.ic.unicamp.br> (raw)
Message-ID: <20000401000000.yFuzwNGjWqZnwnKq5QqAmHiSOVARP3Ug2X23jR7wkek@z> (raw)
In-Reply-To: <85483i$a32$1@nnrp1.deja.com>
On Jan 7, 2000, tobias_meier@my-deja.com wrote:
> gcc MatheTest.c
> /tmp/ccdP8Uys.o: In function `main':
> /tmp/ccdP8Uys.o(.text+0xe): undefined reference to `exp'
> /tmp/ccdP8Uys.o(.text+0x37): undefined reference to `pow'
> collect2: ld returned 1 exit status
math.h is a *header*-file, it just supplies* declarations* of the math
functions. The *definitions* have already been compiled, and live in
the math *library*. You can link your program with the math library
by adding `-lm' to the compile+link command.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them
next prev parent reply other threads:[~2000-01-07 0:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-07 0:46 tobias_meier
2000-01-07 0:51 ` Alexandre Oliva [this message]
2000-04-01 0:00 ` Alexandre Oliva
2000-01-07 1:22 ` Eric Meijer
2000-04-01 0:00 ` Eric Meijer
2000-01-07 3:01 ` Zoran Cutura
2000-04-01 0:00 ` Zoran Cutura
2000-04-01 0:00 ` tobias_meier
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=org0waqn74.fsf@benta.lsd.ic.unicamp.br \
--to=oliva@lsd.ic.unicamp.br \
--cc=help-gcc@gnu.org \
--cc=tobias_meier@my-deja.com \
/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).