This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/903
- To: bje at gcc dot gnu dot org
- Subject: Re: c/903
- From: bje at gcc dot gnu dot org
- Date: 24 Dec 2000 09:06:01 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: bje at gcc dot gnu dot org
The following reply was made to PR c/903; it has been noted by GNATS.
From: bje@gcc.gnu.org
To: aach@genetics.med.harvard.edu, bje@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
nobody@gcc.gnu.org
Cc:
Subject: Re: c/903
Date: 24 Dec 2000 08:57:19 -0000
Synopsis: gcc compiler cannot find log10 function
Responsible-Changed-From-To: unassigned->bje
Responsible-Changed-By: bje
Responsible-Changed-When: Sun Dec 24 00:57:19 2000
Responsible-Changed-Why:
I'll handle this one.
State-Changed-From-To: open->closed
State-Changed-By: bje
State-Changed-When: Sun Dec 24 00:57:19 2000
State-Changed-Why:
This is not a bug in GCC.
If you use the log10() function, you must link the math library
with `-lm' (ie. gcc foo.c -o foo -lm). The only reason G++ works is
that the C++ compiler front-end includes -lm when running the linker
for you.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=903&database=gcc