Compiler Error C3172

'module_name': cannot specify different idl_module attributes in a project

idl_module attributes with the same name but different dllname or version parameters were found in two of the files in a compilation. Only one unique idl_module attribute can be specified per compilation.

Identical idl_module attributes can be specified in more than one source code file.

For example, if the following idl_module attributes were found:

// C3172.cpp
[module(name="MyMod")];
[ idl_module(name="x", dllname="file.dll", version="1.1") ];
int main() {}

And then,

// C3172b.cpp
// compile with: C3172.cpp
// C3172 expected
[ idl_module(name="x", dllname="file.dll", version="1.0") ];

the compiler would generate C3172 (note the different version values).