This documentation is archived and is not being maintained.

Compiler Error C3140

Error Message

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

The module attribute can only be defined once per project.

The following sample generates C3140:

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