Compiler Error C3131


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

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

project must have a 'module' attribute with a 'name' property

The module attribute must have a name parameter.

The following sample generates C3131:

// C3131.cpp  
[module];   // C3131  
// try the following line instead  
// [module (name="MyLib")];  
typedef long int LongInt;