Compiler Error C2223


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at Compiler Error C2223.

left of '->identifier' must point to struct/union

The operand to the left of -> is not a pointer to a class, structure, or union.

This error can be caused by a left operand that is an undefined variable (therefore type int).