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

Re: C compilation questions

On Fri, Dec 29, 2000 at 11:20:34PM +1100, Drew Parsons wrote:
> In file included from /usr/include/math.h:33, from lufactor.c:37:
> /usr/include/bits/huge_val.h:37: warning: HUGE_VAL' redefined
> machine.h:216: warning: this is the location of the previous definition
> Meschach header file matrix.h defines HUGE_VAL if it isn't already defined,
> while the standard header math.h also defines it.
> So my question here is how much of a problem is this?  Should it be (or is
> it) official policy somewhere that standard headers should always be given
> before local headers?

Well, this define looks architecture-specific, so it would seem wiser to let
the system header decide what it is, not some workaround in the package.

Digital Electronic Being Intended for Assassination and Nullification

Reply to: