User forums > General (but related to Code::Blocks)

TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)

<< < (8/15) > >>

lvdong:
#include <float.h> can not include the mingw32's float header
please check with the macros for "Control word masks for unMask"

MortenMacFly:

--- Quote from: lvdong on October 18, 2011, 06:25:24 am ---#include <float.h> can not include the mingw32's float header
please check with the macros for "Control word masks for unMask"

--- End quote ---
...what ever that means. :shock: Is this related to the compile failure? Because the "fix" of Alpha was correct.

reckless:
i think he refers to an old gcc bug with mingw.
gcc's float.h collides with the one from mingw's.
several fixes on that one through time but it does rear its ugly head from time to time most notably when a new version of gcc hits the fan :/
It will probably newer be fixed 100% because the gcc team has made clear that they dont support changing it locally because it would break linux builds.

lvdong:

--- Quote from: reckless on October 18, 2011, 01:57:55 pm ---i think he refers to an old gcc bug with mingw.
gcc's float.h collides with the one from mingw's.
several fixes on that one through time but it does rear its ugly head from time to time most notably when a new version of gcc hits the fan :/
It will probably newer be fixed 100% because the gcc team has made clear that they dont support changing it locally because it would break linux builds.

--- End quote ---

sorry for my pool english, you can check the following codes

source: a.c


--- Code: ---#include <stdio.h>
#include <float.h>

#ifndef MCW_EM
#define MCW_EM _MCW_EM
#endif

int main()
{
    printf("%x\n",MCW_EM);
    return 0;
}

--- End code ---

cmd: gcc a.c

tdm-gcc-4.5.2: pass
tdm-gcc-4.6.1: a.c:10:19: error: '_MCW_EM' undeclared

reckless:
Aye thats pretty much the same error i ran into the couple of versions of gcc i been using with mingw when something used those float functions.
And a few others i cant remember of the top of my head.
Only advise i can give is let the mingw developers know that its broken (again) with 4.6.1 and hopefully they fix it for this version.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version