Export (0) Print
Expand All
Expand Minimize

Compiler Error C2624

local classes cannot be used to declare 'extern' variables

A local class or structure cannot be used to declare extern variables.

Example

// C2624.cpp
int main()
{
struct C {};
extern C ac;    // C2624
}
Show:
© 2015 Microsoft