Re: error compiling gnome-mag: warning: implicit declaration of function `round'



On Wed, 2006-04-19 at 11:28 +0800, James Henstridge wrote:
>    
> First of all, this isn't the list for general programming related
> questions.  Perhaps gnome-devel-list would be more appropriate.

Thanks for the advice. I get in doubt in what list I must post.

> 
> The man page for round() says:
>        Compile with -std=c99; link with -lm.

I don't find it in the round() man page. I also try the info page and
there isn't anything about this.

The only thing relevant to C99 is a part that says:

CONFORMING TO
	C99.

What distro do you have?

> 
> It doesn't look like you are passing -std=c99 to the compiler, so the
> definition is not exposed by <math.h>
> 
> James.
-- 
Carlos Eduardo Rodrigues Diógenes




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]