[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc 2.95 and Standard C
> Okay. I'm in a C class full of Borland C/C++ 4.5 for Windoze. Std C libaries
> contain pow() and sqrt() (power and square root) in <math.h>.
>
> So where the fsck are they in gcc?????
They are defined in <math.h>. You also have to link it against libm.
i.e.: cc -lm -o powsqrt powsqrt.c
--------------------------------------------
Bruce Smith bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan 49093 USA
http://www.armstrong-intl.com/
--------------------------------------------