Gnu C Math Libraries

ted leslie ted.leslie-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Sat Nov 27 18:15:10 UTC 2010


just looked it up
to include standard math library

-lm

On Sat, Nov 27, 2010 at 1:13 PM, ted leslie <ted.leslie-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
> you are including the header file, but to link to the library you need
> to compile with -l and/or -L options to point to those libraries,
> been a while since i made a make file for C (or compiled from CL), but
>  -lmath  ? or something like that.
>
> tl
> On Sat, Nov 27, 2010 at 12:47 PM, Howard Gibson <hgibson-MwcKTmeKVNQ at public.gmane.org> wrote:
>>   I am trying to write a C program using some math functions like log10 and floor.  I am calling up #include <math.h>, but it comes back and claims that the math functions are undefined references.  The man and info pages claim that these functions are part of the math library.  When I search /usr/include/math.h, there is no reference to them.
>>
>>   Does anybody know what is happening here, and what I can do about it?
>>
>> --
>> Howard Gibson
>> hgibson-MwcKTmeKVNQ at public.gmane.org
>> howardg-PadmjKOQAFn3fQ9qLvQP4Q at public.gmane.org
>> http://home.eol.ca/~hgibson
>> --
>> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
>> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
>> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>>
>
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list