ATL Attribute Provider Error ATL2070

Message Text

"symbol" cannot be used in attributed project

Circumstances

The module attribute would inject code that defines the given symbol but this symbol is already defined. The prohibited symbols depend on the type argument given for the module attribute.

The following example is contrived, but roughly minimal (and shows a case that is not covered by the product documentation):

#define     _ATL_ATTRIBUTES
#include    <atlbase.h>

int _Module;

[
    module (name = "Test")
];

The product documentation gives the message text with function as the placeholder, and talks only of global functions that would be injected. It does not specify which attribute may cause such injection, and it omits the _Module and _AtlModule cases.