Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » ctrllib.icpp there was errors
Re: ctrllib.icpp there was errors [message #41610 is a reply to message #41455] Sun, 05 January 2014 16:04 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Masu

I was worried about this and finally got the source of the problem. See this link:

"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."

So there are two solutions:
- To move the #include_next <float.h> from the mingw version into the gcc version of float.h

- To include this code in parse.cpp or directly in Core.h (see the added extern "C"):
#if defined(COMPILER_MINGW)
extern "C" {
	_CRTIMP unsigned int __cdecl __MINGW_NOTHROW _clearfp(void);
}
#define SW_OVERFLOW    0x00000004              
#endif


Please check it and give your opinion. In my case it works with latest MinGW TDM 32 and 64 bits.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to install Upp under Ubuntu 12.04 from PPA
Next Topic: How can I make a menu item display in bold?
Goto Forum:
  


Current Time: Thu Mar 28 17:57:34 CET 2024

Total time taken to generate the page: 0.01345 seconds