Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C2624
Collapse the table of content
Expand the table of content

Compiler Error C2624

local classes cannot be used to declare 'extern' variables

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

The following sample generates C2624:

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