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 #41643 is a reply to message #41610] Tue, 07 January 2014 14:45 Go to previous messageGo to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi Koldo,

yes, this works, too.

But I think we can leave out the
extern "C" { ... }
declarations since __cdecl already instructs the compiler to use C calling conventions (see http://msdn.microsoft.com/en-us/library/zkwh89ks%28v=vs.80%2 9.aspx).

So the following would be enough to include at the top of parser.cpp or even in Core.h:

#if defined(COMPILER_MINGW)
_CRTIMP unsigned int __cdecl __MINGW_NOTHROW _clearfp(void);
#define SW_OVERFLOW    0x00000004              
#endif


It even builds correctly without __cdecl under my configuration.

Regards
Matthias
 
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: Sat Apr 20 11:01:47 CEST 2024

Total time taken to generate the page: 0.01876 seconds