Re: error compiling gnome-mag: warning: implicit declaration of function `round'
- From: James Henstridge <james jamesh id au>
- To: Carlos Eduardo Rodrigues Diógenes <cerdiogenes yahoo com br>
- Cc: desktop-devel-list gnome org
- Subject: Re: error compiling gnome-mag: warning: implicit declaration of function `round'
- Date: Wed, 19 Apr 2006 11:28:51 +0800
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]