Compiler Error C3131

 

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 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  
[emitidl];  
[module];   // C3131  
// try the following line instead  
// [module (name="MyLib")];  
  
[public]  
typedef long int LongInt;  

Show: