Fatal Error C1016
#ifdef expected an identifier#ifndef expected an identifier
The conditional compilation directive (#ifdef or #ifndef
) has no identifier to evaluate. To resolve the error, specify an identifier.
The following sample generates C1016:
// C1016.cpp
#ifdef // C1016
#define FC1016
#endif
int main() {}
Possible resolution:
// C1016b.cpp
#ifdef X
#define FC1016
#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