Mingw-64 Prevent and Detect domain and range errors in math functions
#1
I am trying to determine how to handle domain and range errors using the g++ compiler (Mingw64). I have provided some sample code below which is the approach that I use for g++ on Linux systems. When I compile I get the following messages:warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas] #pragma STDC FENV_ACCESS ON
error: 'math_errhandling' was not declared in this scope
error: 'MATH_ERRNO' was not declared in this scope
error: 'MATH_ERREXCEPT' was not declared in this scopeI have looked for these symbols in the normal include headers but I dont see them. Any help is greately appreciated. I must note that math_errhandling, MATH_ERRNO, MATH_ERREXCEPT and the pragma STDC FENV_ACCESS are part of the c++(2011) standard.
Reply
#2
@Salamanca0405

This is a forum specifically for Kodi. We are not a general help forum.

I suggest you seek assistance at a more appropriate forum

Moved to off-topic
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply

Logout Mark Read Team Forum Stats Members Help
Mingw-64 Prevent and Detect domain and range errors in math functions0