Fatal Error C1019
unexpected #else
The #else
directive appears outside an #if
, #ifdef
, or #ifndef
construct. Use #else
only within one of these constructs.
The following sample generates C1019:
// C1019.cpp
#else // C1019
#endif
int main() {}
Possible resolution:
// C1019b.cpp
#if 1
#else
#endif
int main() {}
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