Compiler Error C2097

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

illegal initialization

To fix by checking the following possible causes

  1. Initialization of a variable using a nonconstant value.

  2. Initialization of a short address with a long address.

  3. Initialization of a local structure, union, or array with a nonconstant expression when compiling with /Za.

  4. Initialization with an expression containing a comma operator.

  5. Initialization with an expression that is neither constant nor symbolic.

Show: