Compiler Error C3106
Collapse the table of content
Expand the table of content

Compiler Error C3106


'attribute': unnamed arguments must precede named arguments

Unnamed arguments must be passed to an attribute before named arguments.

For more information, see User-Defined Attributes (C++ Component Extensions).

The following sample generates C3106.

// C3106.cpp
// compile with: /c
[module(name="MyLib", dll)];   // C3106
[module(dll, name="MyLib")];   // OK
© 2015 Microsoft