From: Sergio N. <sfh...@ho...> - 2012-02-13 13:09:46
|
I've just compiled your code using GCC 4.5.2 without any changes and it worked ok. > From: lui...@gm... > Date: Mon, 13 Feb 2012 10:01:03 -0300 > To: min...@li... > Subject: Re: [Mingw-users] MinGW missing _controlfp and related defines? Looks like not... > > On Mon, Feb 13, 2012 at 9:46 AM, Earnie Boyd > <ea...@us...> wrote: > > > > This is c:/mingw/lib/gcc/[GCC-VERSION]/mingw32/include/float.h which > > isn't kind enough to ``#include_next <float.h>'' > > > >> int main(void) > >> { > >> /* set FPU precision to 64-bit and round to nearest */ > >> _controlfp( _PC_64|_RC_NEAR, _MCW_PC|_MCW_RC ); > > > > So these do not get defined regardless of __STRICT_ANSI__ > > > > The only work around I found was to "c:/mingw/include/float.h" instead > > of <float.h>. > > > > Thank you Earnie for your answer. > > Having a hardcoded path could be a inconvenient in portability. > > Perhaps something else could be done? > > Should I report this to SF bug tracker? > > Thank you for your time. > -- > Luis Lavena > AREA 17 > - > Perfection in design is achieved not when there is nothing more to add, > but rather when there is nothing more to take away. > Antoine de Saint-Exupéry > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > MinGW-users mailing list > Min...@li... > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > Also: mailto:min...@li...?subject=unsubscribe |