หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
local classes cannot be used to declare 'extern' variables
Remarks
A local class or structure cannot be used to declare extern variables.
Example
The following example generates C2624:
// C2624.cpp
int main() {
struct C {};
extern C ac; // C2624
}