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
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for