[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq:2016] Errors with math.h log function
- To: email@example.com
- Subject: [altq:2016] Errors with math.h log function
- From: Rodolfo Cartas <firstname.lastname@example.org>
- Date: Mon, 24 May 2004 11:31:14 -0500
I programmed a new queuing discipline and I've been trying to compile
it unsuccessfully. This discipline requires some math functions to be
configured properly but when compiled, I get the following error from
the math.h library:
In file included from ../../altq/altq_ario.c:100:
../../../include/math.h:93: conflicting types for `log'
../../sys/systm.h:123: previous declaration of `log'
../../../include/math.h:93: warning: redundant redeclaration of `log' in
../../sys/systm.h:123: warning: previous declaration of `log'
../../../include/math.h:111: warning: function declaration isn't a
../../altq/altq_ario.c: In function `ario_alloc':
../../altq/altq_ario.c:459: warning: implicit declaration of function
*** Error code 1
Seems like the log function is redefined but when compiling other
programs using math.h I get no errors. Does anyone know what could be
happennig and what's needed in order to compile the code?