Compiler Error C2504
'class' : base class undefined
The base class is declared but never defined. Possible causes:
Missing include file.
External base class not declared with extern.
The following sample generates C2504:
// C2504.cpp
// compile with: /c
class A;
class B : public A {}; // C2504
class C {};
class D : public C {}; // OK
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