Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Warning (level 1) C4630
Collapse the table of content
Expand the table of content

Compiler Warning (level 1) C4630

Error Message

'symbol' : 'extern' storage class specifier illegal on member definition

A data member or member function is defined as extern. Members cannot be external, although entire objects can. The compiler ignores the extern keyword. The following sample generates C4630:

// C4630.cpp
// compile with: /W1 /LD
class A {
   void func();
};

extern void A::func() {   // C4630, remove 'extern' to resolve
}

Community Additions

ADD
Show:
© 2015 Microsoft