Ron Hudson writes: > -lm works, Thank you. > > Now how can I answer that sort of question for myself in future... I > looked at the man page for > sqrt and gcc, but they didn't tell me anything. I wrote a tutorial for GCC which covers most of what you need to know, see http://www.network-theory.co.uk/gcc/intro/ for details (chapter 2 has examples dealing specifically with the problem you encountered). All the money raised from sales of the book supports the development of free software and documentation. -- Brian Gough (Author of "An Introduction to GCC") Network Theory Ltd, Publishing Free Software Manuals --- http://www.network-theory.co.uk/