Compiler Error C3197
'keyword' : can only be used in definitions
A keyword was used in a declaration but is only valid in a definition.
The following sample generates C3197:
// C3197.cpp
// compile with: /clr /c
ref struct R abstract; // C3197
ref struct R abstract {}; // OK
public ref class MyObject; // C3197
ref class MyObject; // OK
public ref class MyObject {}; // 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