rounding numbers in gcc ?

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Liberty Young
日付:  
題目: rounding numbers in gcc ?
On Thu, 2002-10-31 at 09:33, Bill Jonas wrote:
> On Thu, Oct 31, 2002 at 08:58:28AM -0700, Liberty Young wrote:
> > gcc -Wall -D_GNU_SOURCE -D_ISOC99_SOURCE foo.c -o foo
>
> Add "-lm" somewhere on that line so that you link against the math
> library. Yes, you included math.h, but the linker won't know to link it
> against the math library unless you tell it to do so.
>
> -- 
> Bill Jonas    *        *    http://www.billjonas.com/
> "They that can give up  essential  liberty to obtain a little temporary
> safety deserve neither liberty nor safety."        -- Benjamin Franklin

Thanks, that works!

Such a silly thing to forget...boy do i feel silly now :)