Compiler Error C2012

 

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

missing name following '<'

An #include directive lacks the required filename.

The following sample generates C2012:

// C2012.cpp  
#include <   // C2012 include the filename to resolve  

Possible resolution:

// C2012b.cpp  
// compile with: /c  
#include <stdio.h>  

Show: