Kodi Community Forum

Full Version: Mingw-64 Prevent and Detect domain and range errors in math functions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
@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