Re: compile or link error

From: Paul F. Johnson (paul_at_all-the-johnsons.co.uk)
Date: 03/12/05


Date: Sat, 12 Mar 2005 14:26:49 GMT

Hi,

> I am trying to use the math functions in a program and
> when I compile I get the error message below. Here is the
> source and the results of the session. Am I missing
> a library. Can someone help?

gcc maths.c -o maths -lm

should work. Maths isn't part of the gcc "usually included" libraries,
you need to put it in yourself.

TTFN

Paul



Relevant Pages