Compiler Error C3199

 

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 C3199.

invalid use of floating-point pragmas: exceptions are not supported in non-precise mode

The float_control pragma was used to specify floating-point exception model under an /fp setting other than /fp:precise.

The following sample generates C3199:

// C3199.cpp  
// compile with: /fp:fast  
#pragma float_control(except, on)   // C3199  

Show: