Edit

Share via


Compiler Error C3140

cannot have multiple 'module' attributes in the same compilation unit

Remarks

The module attribute can only be defined once per project.

Example

The following example generates C3140:

// C3140.cpp
// compile with: /c
[emitidl];
[module(name = "MyLibrary")];
[module(name = "MyLibrary2")];   // C3140