Article View: gnu.gcc.help
Article #41452Re: linux gcc 2.7.0 pow in math.h broken?
From: Joerg Zieren
Date: Mon, 08 Apr 1996 00:00
Date: Mon, 08 Apr 1996 00:00
18 lines
1093 bytes
1093 bytes
m> /tmp/cca092541.o: In function `main':
m> /tmp/cca092541.o(.text+0x15): undefined reference to `pow'
m>
m> Platform: Linux 1.2.13 (ELF) [Slackware 3.0]
m> Version: GCC 2.7.0
m> libc: libc.so.5.2.18
[...]
m> #include <math.h>
When you #include <math.h>, use -lm.
--
Q@Nostlgic.tng.oche.de
Joerg Zieren@2:2452/108.13
--
* Hitchhike to Mars!
Technical Details
Message-ID:
<66UKRcYl5HB@cntnm.konnex.dssd.sub.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4jom7h$eaj@the-fly.zip.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,abb689789a4e4272 X-Google-Attributes: gid11318c,public From: Q@konnex.dssd.sub.org (Joerg Zieren) Subject: Re: linux gcc 2.7.0 pow in math.h broken? Date: 1996/04/08 Message-ID: <66UKRcYl5HB@cntnm.konnex.dssd.sub.org> X-Deja-AN: 146840091 references: <4jom7h$eaj@the-fly.zip.com.au> content-type: text/plain; charset=iso-8859-1 x-zc-post: Q@Nostlgic.tng.oche.de x-gateway: ZCONNECT UE uuart.art-line.art-line.de [PolyNet zTOr V5.111 Serie: "retrax"] mime-version: 1.0 x-zc-telefon: V+49-241-962347Q newsgroups: gnu.gcc.help