Compiler Error C2205

 

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 C2205.

identifier' : cannot initialize extern variables with block scope

An extern variable cannot be initialized in a function.

Show: