9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] ape include files
@ 2001-09-13 13:12 pac
  0 siblings, 0 replies; 4+ messages in thread
From: pac @ 2001-09-13 13:12 UTC (permalink / raw)
  To: 9fans; +Cc: cej


Hi all,

while compiling under APE, I met the following conflict several times, when both
#include <float.h>
#include <limits.h>
were present.


cpp: /386/include/ape/float.h:11  Macro redefinition of FLT_MAX
cpp: /386/include/ape/float.h:14  Macro redefinition of FLT_MIN
cpp: /386/include/ape/float.h:21  Macro redefinition of DBL_MAX
cpp: /386/include/ape/float.h:24  Macro redefinition of DBL_MIN


Obviously, I found e.g.:
/root/sys/include/ape/sys/limits.h:#define FLT_MAX	3.40282347E+38
/root/386/include/ape/float.h:#define FLT_MAX		3.40282347e+38
etc....

Is this an intention, or a bug? If intention, I would be glad for a workaround.

Best regards,
Peter.


--
Peter A Cejchan
biologist
Acad. Sci., Prague, CZ
<cej at cejchan dot gli dot cas dot cz>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] ape include files
  2001-09-13 13:13 rob pike
  2001-09-13 13:53 ` Boyd Roberts
@ 2001-09-18  9:26 ` pac
  1 sibling, 0 replies; 4+ messages in thread
From: pac @ 2001-09-18  9:26 UTC (permalink / raw)
  To: 9fans

>> This is a multi-part message in MIME format.
>> --upas-uiubjldtinbuzabctfttspdnoi
>> Content-Disposition: inline
>> Content-Type: text/plain; charset="US-ASCII"
>> Content-Transfer-Encoding: 7bit
>>
>> Delete the FLT_* definitions from limits.h.  They don't belong there.
>>
>> -rob
>>

I suppose this holds also for DBL_* definitions: I removed them from limits.h, and now everything seems to compile fine.
Thanks, regards,
Peter.


--
Peter A Cejchan
biologist
Acad. Sci., Prague, CZ
<cej at cejchan dot gli dot cas dot cz>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] ape include files
  2001-09-13 13:13 rob pike
@ 2001-09-13 13:53 ` Boyd Roberts
  2001-09-18  9:26 ` pac
  1 sibling, 0 replies; 4+ messages in thread
From: Boyd Roberts @ 2001-09-13 13:53 UTC (permalink / raw)
  To: 9fans

this seems to be a reasonable summary of what goes where:

    http://www.infosys.utas.edu.au/info/documentation/C/CStdLib.html




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] ape include files
@ 2001-09-13 13:13 rob pike
  2001-09-13 13:53 ` Boyd Roberts
  2001-09-18  9:26 ` pac
  0 siblings, 2 replies; 4+ messages in thread
From: rob pike @ 2001-09-13 13:13 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 81 bytes --]

Delete the FLT_* definitions from limits.h.  They don't belong there.

-rob


[-- Attachment #2: Type: message/rfc822, Size: 2069 bytes --]

From: pac <cej@cejchan.gli.cas.cz>
To: 9fans@cse.psu.edu
Cc: cej@cejchan.gli.cas.cz
Subject: [9fans] ape include files
Date: Thu, 13 Sep 2001 15:12:22 +0200
Message-ID: <cej-1010913151221.A01296@cejchan.gli.cas.cz>


Hi all,

while compiling under APE, I met the following conflict several times, when both
#include <float.h>
#include <limits.h>
were present.


cpp: /386/include/ape/float.h:11  Macro redefinition of FLT_MAX
cpp: /386/include/ape/float.h:14  Macro redefinition of FLT_MIN
cpp: /386/include/ape/float.h:21  Macro redefinition of DBL_MAX
cpp: /386/include/ape/float.h:24  Macro redefinition of DBL_MIN


Obviously, I found e.g.:
/root/sys/include/ape/sys/limits.h:#define FLT_MAX	3.40282347E+38
/root/386/include/ape/float.h:#define FLT_MAX		3.40282347e+38
etc....

Is this an intention, or a bug? If intention, I would be glad for a workaround.

Best regards,
Peter.


--
Peter A Cejchan
biologist
Acad. Sci., Prague, CZ
<cej at cejchan dot gli dot cas dot cz>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-09-18  9:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-13 13:12 [9fans] ape include files pac
2001-09-13 13:13 rob pike
2001-09-13 13:53 ` Boyd Roberts
2001-09-18  9:26 ` pac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).