This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: possible gcc/g++ problem
- To: Ron <rongage at att dot net>
- Subject: Re: possible gcc/g++ problem
- From: Geoff Keating <geoffk at envy dot cygnus dot com>
- Date: 29 Dec 1999 21:19:31 -0800
- CC: gcc-bugs at gcc dot gnu dot org
- References: <386ADBD6.699DC40D@att.net>
You need to add '-lm' to your link line, pow() is in the math library.
The C++ compiler does this for you because the C++ standard library
uses the math library.
--
- Geoffrey Keating <geoffk@cygnus.com>