[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] gcc - problems with math functions.



On Sat, 10 Jun 2000, Barrie Bremner wrote:

>#include <math.h>

> notice I`m only using gcc source.c -o output_program - should I be
>doing something else?

Yup you need to link to the math library. So add -lm
to your gcc command (that's an ell not an i in case you're viewing
in a funny font).

atb

Martin
-- 
http://www.shef.ac.uk/~pm1mph



---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.