You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/05/08 20:51:27 UTC

DO NOT REPLY [Bug 8915] New: - Use of INFINITY not compatible with math.h

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8915>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8915

Use of INFINITY not compatible with math.h

           Summary: Use of INFINITY not compatible with math.h
           Product: Xerces-C++
           Version: 1.6.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: SAX/SAX2
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: mikee_2k1@hotmail.com


One of the math header files (bits/mathdef.h, which is included by math.h) 
defines INFINITY. This conflicts with the use of INFINITY in these files:
./samples/SEnumVal/SEnumVal.cpp:  if( mflags == SchemaSymbols::INFINITY  )
./src/validators/schema/SchemaSymbols.hpp:        INFINITY = -2,
./include/validators/schema/SchemaSymbols.hpp:        INFINITY = -2,

A file that includes both cmath (or math.h) and sax2/XMLReaderFactory.hpp 
cannot be compiled. A limited work-around is to include cmath AFTER the sax2 
header file. Unfortunately, in large projects, this is not always an obvious 
solution (because of indirect file inclusions).

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org