Compiler Error C3452
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C3452.
list argument member not constant
An argument was passed to an attribute that expected a constant, a value that can be evaluated at compile time.
The following sample generates C3452.
// C3452.cpp
// compile with: /c
int i;
[module( name="mod", type=dll, custom={i} ) ]; // C3452
// try the following line instead
// [module( name="mod", type=dll, custom={"a"} ) ];
Show: