Edit

Share via


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.

Example

The following sample generates C3106.

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