2018-05-05, 11:13
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.
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.