Re: compile or link error
From: Paul F. Johnson (paul_at_all-the-johnsons.co.uk)
Date: 03/12/05
- Next message: George Huber: "Re: Function with two int parameters"
- Previous message: Gianni Mariani: "Re: compile or link error"
- In reply to: George: "compile or link error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: George Huber: "Re: Function with two int parameters"
- Previous message: Gianni Mariani: "Re: compile or link error"
- In reply to: George: "compile or link error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|