Compiler Error C3198

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C3198.

invalid use of floating-point pragmas: fenv_access pragma operates only in precise mode

fenv_access pragma was used under an /fp setting other than /fp:precise.

The following sample generates C3198:

// C3198.cpp  
// compile with: /fp:fast  
#pragma fenv_access(on)   // C3198  

Show: