[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: math.h and floor, ceil
From: |
Andreas Jaeger |
Subject: |
Re: math.h and floor, ceil |
Date: |
16 Nov 2000 11:39:20 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Capitol Reef) |
>>>>> Robert Kern writes:
> Dear Developers,
> I am porting an application from Win to Linux using gcc 2.91.66 and and libc
> 2.1.3 - 163.
> I red in the glibc article
> http://www.gnu.org/manual/glibc-2.0.6/html_node/libc_267.html that the
> functions floor and ceil can be found in math.h.
> But I can't find these functions in math.h. I already downloaded some other
> releases of libc, with the same problem.
What's exactly your problem? The prototype is found if you include
<math.h> - it lives in a different file. If you need them for
linking, add -lm to the gcc command line when linking.
Andreas
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj