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>