[LCP]Missing Prototype in math.h

Chuck Martin nrocinu at myrealbox.com
Mon Dec 16 23:02:01 UTC 2002


On Mon, Dec 16, 2002 at 06:18:03PM +0530, Hemant Mohan wrote:
> If I compile the following code segement  then I get the warning:
> 
> Implicit declaration of the function roundf

I had this problem a few months ago, and it turned out to be because
round/roundf/roundl are C99 functions, and won't work unless you first
put

#define _ISOC99_SOURCE

at the top of your source file.

Chuck




More information about the linuxCprogramming mailing list