Fatal Error C1190
Visual Studio 2015
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 Fatal Error C1190.
managed targeted code requires a '/clr' option
You are using CLR constructs but you did not specify /clr.
For more information, see /clr (Common Language Runtime Compilation).
The following sample generates C1190:
// C1190.cpp
// compile with: /c
__gc class A {}; // C1190
ref class A {};
Show: