|
From: | Mark Brand |
Subject: | [Mingw-cross-env-list] [patch] cooperation between gcc's and mingw's float.h |
Date: | Sat, 05 Jun 2010 13:06:52 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100527 SUSE/3.1rc1-3.1 Thunderbird/3.1 |
Hi,I'm reluctantly cross-posting because this issue requires cooperation between gcc and mingw.
Both mingw and gcc have a float.h. The mingw version supplements the gcc version, declaring _clear87 and _control87 among other things. The mingw version has an #include_next which is meant to include the gcc version. This works only when the mingw include dir is first in the header search path, which may not be correct.
When the header search list is ordered with the mingw include directory after the gcc's, a common symptom is that _clear87 and _control87 are undeclared.
A web search for "mingw gcc float.h _clear87" turns up lots of references to this problem, one of which is here:
http://bugreports.qt.nokia.com/browse/QTBUG-7576.An easy (and correct?) solution is to move the #include_next<float.h> from the mingw version into the gcc version regards. The attached patches do this. But I imagine some discussion might be needed.
These patches are against tarballs gcc-4.5.0.tar.bz2 and mingwrt-3.18-mingw32-dev.tar.gz
Mark
gcc-1-mingw-float.patch
Description: Text Data
mingwrt-1-float.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |