Carlos Eduardo Rodrigues Diógenes wrote:
> Hi,
>
> I'm making some modifications in the gnome-mag code and I haved to use
> the round () function, but when I try to compile I get the following
> warning:
>
> warning: implicit declaration of function `round'
>
> I don't know why the function round is implicit declarated, since I'm
> including the math.h file. Someone can give me any help.
>
> This is the entirely output of my compilation:
>
>
>   
[snip]
> Any help will be very appreciated.
>   
First of all, this isn't the list for general programming related
questions.  Perhaps gnome-devel-list would be more appropriate.

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

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

James.
_______________________________________________
desktop-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/desktop-devel-list

Reply via email to