Compiler Error C3751
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Compiler Error C3751

Visual Studio .NET 2003

'attribute': 'assembly' or module' attribute qualifiers can only be used in anonymous attribute blocks; did you forget a ';'?

Assembly or module level attributes can only be specified as standalone instructions.

The following sample generates C3751:

// C3751.cpp
// compile with: /clr
#using <mscorlib.dll>

[__assembly::System::CLSCompliant(true)]   // C3751
// try the following line instead
// [__assembly::System::CLSCompliant(true)];

int main() {
© 2016 Microsoft